<!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">
    Hi Duane,<br>
    <br>
    Looking in the logs:<br>
    <br>
    <li class="li1">
      <div class="de1">Jul 13 10:26:17 proxy02
        /usr/local/sbin/opensips[2917]: DBG:core:serialize_branches: Msg
        information <a class="moz-txt-link-rfc2396E" href="sip:90127X2XX9@64.132.245.122:53404,,,70,0">&lt;sip:90127X2XX9@64.132.245.122:53404,,,70,0&gt;</a></div>
    </li>
    <li class="li2">
      <div class="de2">Jul 13 10:26:17 proxy02
        /usr/local/sbin/opensips[2917]: DBG:core:serialize_branches:
        Branch information
<a class="moz-txt-link-rfc2396E" href="sip:9014XX7XX9@64.136.174.30:5060,sip:9014XX7XX9@173.203.82.88:5060,,1000,0">&lt;sip:9014XX7XX9@64.136.174.30:5060,sip:9014XX7XX9@173.203.82.88:5060,,1000,0&gt;</a></div>
    </li>
    <br>
    <br>
    As you can see, the RURI branch has no $du, just $ru.<br>
    <br>
    So, after appending the branch, when setting the new one, you have
    to set both ru and du again.<br>
    <br>
    Regards,<br>
    Bogdan<br>
    <br>
    On 07/13/2011 07:59 PM, Duane Larson wrote:
    <blockquote
cite="mid:CAFcM1EpZbBFVQXR-0UroFR7OTZbOLE0pCvDDnehBHQKEYxj8yA@mail.gmail.com"
      type="cite">
      <div>This week just isn't my week when it comes to
        serialize_branch.&nbsp; I just noticed that when I set $ru then $du
        then append_branch and then set $ru again with a different uri
        and serialize the call that should be forwarded to the $du isn't
        being forwarded.&nbsp; Instead the call goes directly to the ip that
        is in $ru.&nbsp; This can be seen in the following debugs that I
        already posted to Saul for my Mediaproxy issue.</div>
      <div>&nbsp;</div>
      <div>Syslog Debug</div>
      <div><a moz-do-not-send="true" href="http://pastebin.com/ZpsR5WG8">http://pastebin.com/ZpsR5WG8</a></div>
      <div>Do a search for "serialize_branches: Branch information" and
        you will see that the branch uri and duri are all set.</div>
      <div>&nbsp;</div>
      <div>Then in this siptrace you see that opensips doesn't send it
        to the $du destination but instead sends it directly to the uri
        in $ru.</div>
      <div><a moz-do-not-send="true" href="http://pastebin.com/Rvg6nNGa">http://pastebin.com/Rvg6nNGa</a></div>
      <div>&nbsp;</div>
      <ol>
        <li class="li1">
          <div class="de1">U 2011/07/13 10:49:04.650882
            173.XXX.XXX.107:5060 -&gt; <a moz-do-not-send="true"
              href="http://64.136.174.30:5060">64.136.174.30:5060</a></div>
        </li>
        <li class="li2">
          <div class="de2">INVITE <a moz-do-not-send="true"
              href="http://sip:9014XX7XX9@64.136.174.30:5060">sip:9014XX7XX9@64.136.174.30:5060</a>
            SIP/2.0.</div>
        </li>
        <li class="li1">
          <div class="de1">Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:173.XXX.XXX.107;lr;ftag=ca22d05c94774292b9249854dada78de;did=3b5.b8577b82">&lt;sip:173.XXX.XXX.107;lr;ftag=ca22d05c94774292b9249854dada78de;did=3b5.b8577b82&gt;</a>.</div>
        </li>
        <li class="li2">
          <div class="de2">Via: SIP/2.0/UDP
            173.XXX.XXX.107;branch=z9hG4bK34d7.0f26b417.0.</div>
        </li>
        <li class="li1">
          <div class="de1">Via: SIP/2.0/UDP
64.132.245.122:53383;received=64.132.245.122;rport=53383;branch=z9hG4bKPj26a970ba1b3f44f9b823cbbe4c063bd6.</div>
        </li>
        <li class="li2">
          <div class="de2">Max-Forwards: 69.</div>
        </li>
        <li class="li1">
          <div class="de1">From: "SecondDell" &lt;<a
              moz-do-not-send="true"
              href="mailto:sip%3A90133XXX18@irock.com">sip:90133XXX18@irock.com</a>&gt;;tag=ca22d05c94774292b9249854dada78de.</div>
        </li>
        <li class="li2">
          <div class="de2">To: &lt;<a moz-do-not-send="true"
              href="mailto:sip%3A90127X2XX9@irock.com">sip:90127X2XX9@irock.com</a>&gt;.</div>
        </li>
        <li class="li1">
          <div class="de1">Contact: &lt;<a moz-do-not-send="true"
              href="http://sip:zdcrgabl@64.132.245.122:53383">sip:zdcrgabl@64.132.245.122:53383</a>&gt;.</div>
        </li>
        <li class="li2">
          <div class="de2">Call-ID: a46fcbf5977c40c6aa23bac44aa05ff4.</div>
        </li>
        <li class="li1">
          <div class="de1">CSeq: 3377 INVITE.</div>
        </li>
        <li class="li2">
          <div class="de2">Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK,
            BYE, CANCEL, UPDATE, MESSAGE, REFER.</div>
        </li>
        <li class="li1">
          <div class="de1">Supported: 100rel, norefersub.</div>
        </li>
        <li class="li2">
          <div class="de2">User-Agent: Blink 0.2.7 (Windows).</div>
        </li>
        <li class="li1">
          <div class="de1">Content-Type: application/sdp.</div>
        </li>
        <li class="li2">
          <div class="de2">Content-Length: 693.</div>
        </li>
        <li class="li1">
          <div class="de1">P-hint: inbound-&gt;inbound .</div>
        </li>
        <li class="li2">
          <div class="de2">P-hint: Route[6]: mediaproxy .</div>
        </li>
      </ol>
      <p class="li1">I just upgraded to 1.7 and that didn't matter.</p>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"</pre>
  </body>
</html>