[SR-Users] Bug: Dialog State=*Teminated* even when the call is active

Gnaneshwar Gatla GGatla at InTouchHealth.com
Thu Dec 15 01:32:01 CET 2011


Hello,

I have come across this behavior in Kamailio 3.1.5 version.
The proxy is behind a Firewall and uses the advertised IP to communicate to sipclients.
I have used the "dlg_match_mode", as the record_route_preset() does not include the DID during call initiation.
modparam("dialog", "dlg_match_mode", 2)

I'm also using pua_dialoginfo to notify users about the "Event:dialog". I have used the attached patch to make pua_dialog info aware of the dialog
I see that the dialog is being created, and the pua_dialoginfo publishes with state "trying" and "confirmed".
When the call is cancelled/408 request is generated, the pua_dialoginfo generates the xml with state=terminated.

But when the call is answered, the dialog module updates the dialog to state=4, according to the documentation mentioned below state=4 --> Terminated.
I'm not aware of the event types that fires the state to termination (I have not found the documentation about events in the dialog module).
When a BYE is received to the same call, the BYE is processed and the dialog is cleared from the memory. But the pua_dialoginfo never gets the callback for the  termination and the xml is never updated.

I have attached a log for a call, please find the attached document.
I have come across a documentation about dialog module:
http://www.kamailio.org/dokuwiki/doku.php/modules-new-design:dialog-module-design

Regards
Gnaneshwar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111214/2410a2db/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.zip
Type: application/x-zip-compressed
Size: 356313 bytes
Desc: test.zip
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111214/2410a2db/attachment-0001.bin>


More information about the sr-users mailing list