[sr-dev] [tracker] Comment added: Kamailio 3.1.3 crash

sip-router admin at sip-router.org
Thu Apr 7 12:43:24 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#122 - Kamailio 3.1.3 crash
User who did this - Timo Reimann (tr)

----------
There's a problem with calling dlg_manage() on INVITE messages and spiral detection: It doesn't trigger spiral detection at the moment but creates another dialog right away. Luckily, I have already created a patch which I plan to integrate into the master branch ASAP. I simply haven't found the time to do it yet. As of now, the spiral detection code is only effective when you auto-track dialogs and let the dialog machinery try to match a new INVITE to a possibly already existing dialog.

If spirals are not involved or you are dealing with in-dialog messages, however, dlg_manage() should work fine and *not* create a new dialog. My understanding was that you are processing a BYE transaction so if you call dlg_manage() it should work in that case. Let me know if I got you wrong about how and when you use dialog's exported functions (an excerpt from your configuration would certainly be helpful).

By the way, dlg_get() doesn't care about spirals. It just grabs the first dialog matching the given dialog ID (Call ID, To-tag, From-tag) and proclaims that to be the current dialog, so you need to make sure there's no ambiguity in the first place setting "detect_spirals" to 1 and having the dialog being tracked properly. Honestly, I think the dialog interface and the way messages are mapped to dialogs needs to be overhauled significantly. I'd like to see calls to $dlg() work every time and without any dependence on previously called methods (like dlg_get() or dlg_manage()) regardless of whether a call is already being tracked or not.

This is certainly possible (IMHO) but needs time. Give me a time machine and I'll do it for you in a blink of an eye. :)


Cheers,

--Timo
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=122#comment198

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list