[Spce-user] unset_dlg when CANCEL Method received
Klaus Peter v. Friedeburg
friedeburg at aco.de
Wed Nov 14 07:05:37 EST 2012
well when 487 received the dialog is destroyed! But when no negative response received from what reason for ever the dialog will be active for 12 hours.
I´It is possible that the following scenario occurs:
Client send an INVITE
Kamailio received and processed the INVITE and create the dialog
Before any response is reaching the kamailio, the client send an CANCEL
Kamailio received and processes the CANCEL but don’t get any response (the sbc down for example)
The result is an "hanging" dialog
Unset_dlg() is not a solution because a call to this function in a REQUEST ROUTE is not allowed, so that we are not able to destroy the dialog when an CANCEL is received. I think it is a good idea to destroy the dialog when CANCEL received. I think that then the "5 second problem" is fixed. It is possible that you can discuss this on the kamailio-mailing-list?
> -----Ursprüngliche Nachricht-----
> Von: Jon Bonilla (Manwe) [mailto:jbonilla at sipwise.com]
> Gesendet: Mittwoch, 14. November 2012 12:06
> An: spce-user at lists.sipwise.com
> Cc: Klaus Peter v. Friedeburg
> Betreff: Re: [Spce-user] unset_dlg when CANCEL Method received
> El Wed, 14 Nov 2012 11:41:01 +0100
> "Klaus Peter v. Friedeburg" <friedeburg at aco.de> escribió:
> > Hi Jon,
> > I have figure out, that the dialog was NOT destroyed when the call is CANCELD
> > while RINGING before 200 OK is received. The Dialog be active for 12 hours
> > (the default timeout for dialogs in the modul until modparam("dialog",
> > "default_timeout",xxxxx) not set.
> After a quick check in my dev 2.6 spce, I've seen that the dialog is d estroyed
> after those 5 seconds.
> My scenario:
> --> Call from pstn
> <-- 180 ringing
> --> CANCEL
> <--200 canceling
> <-- 487 Request terminated
> --> ack
> The 487 as negative response to the INVITE should destroy the dialog. Could you
> check your scenario and see if the flow is the same?
More information about the Spce-user