<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Thanks, got the info I need - I have a start, need to investigate
    bit more on UPDATE handling. I will come up with a fix for you.<br>
    <br>
    Regards,<br>
    Bogdan<br>
    <br>
    On 03/23/2012 05:09 PM, Duane Larson wrote:
    <blockquote
cite="mid:CAFcM1Er7vD0VF96w6QMfNzTXi7sZqfqHFpa-sNg7J7GWrsk4Dg@mail.gmail.com"
      type="cite">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>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned int local_index, str* to_tag, str*
      from_tag, str* callid)<br>
      {<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b2b_dlg_t* dlg;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; str dlg_from_tag={NULL, 0};<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlg_leg_t* leg;<br>
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LM_DBG("entering with start=%p, table=%p, hash=%i,
      label=%i \n",<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start_dlg,table,hash_index,local_index);<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(callid)<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LM_DBG("searching&nbsp; callid %d[%.*s]\n",
      callid-&gt;len,callid-&gt;len, callid-&gt;s);<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(to_tag)<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LM_DBG("searching&nbsp;&nbsp; totag %d[%.*s]\n",
      to_tag-&gt;len,to_tag-&gt;len, to_tag-&gt;s);<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(from_tag)<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LM_DBG("searching fromtag %d[%.*s]\n",
      from_tag-&gt;len,from_tag-&gt;len, from_tag-&gt;s);<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlg= start_dlg?start_dlg-&gt;next:table[hash_index].first;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(dlg)<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
      <br>
      <br>
      And here is the debug output and an NGREP of the call<br>
      <br>
      <a moz-do-not-send="true" 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">&lt;<a
            moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          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 moz-do-not-send="true"
                href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                Here is a debug and the NGREP that goes along with it.<br>
                <br>
                <a moz-do-not-send="true"
                  href="http://pastebin.com/DuDKUrGd" target="_blank">http://pastebin.com/DuDKUrGd</a><br>
                <br>
                <br>
                <br>
                <br>
                <br>
                On , Bogdan-Andrei Iancu &lt;<a moz-do-not-send="true"
                  href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;
                wrote:<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; Hi Duane,<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; Could please re-run the scenario with opensips in
                full debug<br>
                &gt; (debug=4) and and post somewhere the logs
                corresponding to UPDATE<br>
                &gt; and BYE processing ?<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; Thanks and regards,<br>
                &gt;<br>
                &gt; Bogdan<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; On 03/22/2012 03:46 AM, <a moz-do-not-send="true"
                  href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>
                wrote:<br>
                &gt; I am seeing the following issue<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; One of OpenSIPS users makes an outbound call
                through a SIP<br>
                &gt; carrier. This gets sent to my OpenSIPS B2BUA which
                then sends it<br>
                &gt; to the SIP carrier. The calls length makes it to 30
                minutes and<br>
                &gt; then it is killed.<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; I see that the SIP carrier at around the 30 minute
                mark is sending<br>
                &gt; an UPDATE message to the client but for some reason
                when the<br>
                &gt; OpenSIPS B2BUA sees this UPDATE message it doesn't
                think it is<br>
                &gt; apart of the current dialog. So then the SIP
                carrier sends a BYE<br>
                &gt; because it never got a reply back for the UPDATE.
                The OpenSIPS<br>
                &gt; B2BUA has no problem recognizing the BYE message as
                being apart of<br>
                &gt; the Dialog and sends this over to the OpenSIPS
                user. Am I doing<br>
                &gt; something wrong?<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt; _______________________________________________<br>
                &gt; Users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
                &gt;<br>
              </blockquote>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
  </body>
</html>