Ok<br><br>Patched dlg.c to look like this<br><br><br>b2b_dlg_t* b2b_search_htable_next_dlg(b2b_dlg_t* start_dlg, b2b_table table, unsigned int hash_index,<br> unsigned int local_index, str* to_tag, str* from_tag, str* callid)<br>
{<br> b2b_dlg_t* dlg;<br> str dlg_from_tag={NULL, 0};<br> dlg_leg_t* leg;<br><br> LM_DBG("entering with start=%p, table=%p, hash=%i, label=%i \n",<br> start_dlg,table,hash_index,local_index);<br>
if(callid)<br> LM_DBG("searching callid %d[%.*s]\n", callid->len,callid->len, callid->s);<br> if(to_tag)<br> LM_DBG("searching totag %d[%.*s]\n", to_tag->len,to_tag->len, to_tag->s);<br>
if(from_tag)<br> LM_DBG("searching fromtag %d[%.*s]\n", from_tag->len,from_tag->len, from_tag->s);<br> dlg= start_dlg?start_dlg->next:table[hash_index].first;<br> while(dlg)<br>
{<br><br><br>And here is the debug output and an NGREP of the call<br><br><a href="http://pastebin.com/ZiQsQj5r">http://pastebin.com/ZiQsQj5r</a><br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 6:19 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Duane,<br>
<br>
Strange, the logs shows that the UPDATE did not actually match, while the BYE did...<br>
<br>
Could you please retake the test (same debug=4) while using the attached patch - the patch is just for printing more info related to matching.<br>
<br>
Thanks and regards,<br>
Bogdan<div class="HOEnZb"><div class="h5"><br>
<br>
On 03/22/2012 06:24 PM, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is a debug and the NGREP that goes along with it.<br>
<br>
<a href="http://pastebin.com/DuDKUrGd" target="_blank">http://pastebin.com/DuDKUrGd</a><br>
<br>
<br>
<br>
<br>
<br>
On , Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Hi Duane,<br>
><br>
><br>
><br>
> Could please re-run the scenario with opensips in full debug<br>
> (debug=4) and and post somewhere the logs corresponding to UPDATE<br>
> and BYE processing ?<br>
><br>
><br>
><br>
> Thanks and regards,<br>
><br>
> Bogdan<br>
><br>
><br>
><br>
> On 03/22/2012 03:46 AM, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a> wrote:<br>
> I am seeing the following issue<br>
><br>
><br>
><br>
><br>
> One of OpenSIPS users makes an outbound call through a SIP<br>
> carrier. This gets sent to my OpenSIPS B2BUA which then sends it<br>
> to the SIP carrier. The calls length makes it to 30 minutes and<br>
> then it is killed.<br>
><br>
><br>
><br>
><br>
> I see that the SIP carrier at around the 30 minute mark is sending<br>
> an UPDATE message to the client but for some reason when the<br>
> OpenSIPS B2BUA sees this UPDATE message it doesn't think it is<br>
> apart of the current dialog. So then the SIP carrier sends a BYE<br>
> because it never got a reply back for the UPDATE. The OpenSIPS<br>
> B2BUA has no problem recognizing the BYE message as being apart of<br>
> the Dialog and sends this over to the OpenSIPS user. Am I doing<br>
> something wrong?<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> ______________________________<u></u>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Founder and Developer<br>
> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
><br>
><br>
><br>
> <br>
</blockquote>
<br>
<br>
-- <br>
Bogdan-Andrei Iancu<br>
OpenSIPS Founder and Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>