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