<div dir="ltr"><div>Hi George,<br></div><div><br></div>Not sure what 'buggy corner cases' you are referring to, but involving dlg_manage() makes sense only for initial INVITEs. <div>IMO in that snippet, dlg_manage() should placed one row higher, within the curly brackets condition.<br></div><div><br></div><div>Regards,</div><div>--Sergiu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 25, 2019 at 9:58 AM George Diamantopoulos <<a href="mailto:georgediam@gmail.com">georgediam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello all,</div><div><br></div><div>I've been reading through the dialog module docs again, and there seems to be a discrepancy in what's suggested in the docs. In the intro, it is stated that 'To create the dialog associated with an initial INVITE request, execute
        the function <span>“<span>dlg_manage()</span>"'</span>. Later on, in section "7.10" the following example code is provided:</div><div style="margin-left:40px">request_route {<br>...<br>    if(is_method("INVITE") && !has_totag())<br>    {<br>        $dlg_ctx(timeout_route) = "DLGTIMEOUT";<br>        $dlg_ctx(timeout_bye) = 1;<br>    }<br>    dlg_manage();<br>...<br>}</div><div>In this example code, dlg_manage seems to be called for all requests, as it is not dependent on the conditional that only requests with no to-tag are to be handled.</div><div><br></div><div>Previously, Daniel had suggested to me in person that one also run dlg_manage() for CANCELs, and in-dialog reINVITEs, BYEs and ACKs to mitigate some buggy corner cases. Is this still the case?</div><div><br></div><div>What do you guys and gals do in production? Have you had to revise how you use dlg_manage in terms of calling it for initial INVITEs only vs all requests? Thanks!</div><div><br></div><div>BR,</div><div>George<br></div><div><br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>