<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,<br>
    </p>
    append_branch() is setting only request uri (r-uri) for the extra
    branch. If you need to set also outbound proxy (dst uri), use the
    sbranch function:<br>
    <br>
      -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/pv.html#pv.f.sbranch_append">https://www.kamailio.org/docs/modules/stable/modules/pv.html#pv.f.sbranch_append</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 08.09.17 08:52, Aidar Kamalov wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPXdxKjvPWpjdvW1Y3w-6JnPu8WUYJV9CWp=ZxmfiF1-EgYc5Q@mail.gmail.com">
      <div dir="ltr">Hello!
        <div><br>
          I have a simple route</div>
        <div>
          <div>route[HUNT] {</div>
          <div>    $ru = "<a href="http://sip:34200@172.16.3.7:5060"
              moz-do-not-send="true">sip:34200@172.16.3.7:5060</a>";<br>
          </div>
          <div>    append_branch("<a
              href="mailto:sip%3A34201@192.168.2.71"
              moz-do-not-send="true">sip:34201@192.168.2.71</a>");</div>
          <div>}</div>
          <div>172.16.3.7 and 192.168.2.71 ip phones<br>
          </div>
          <div>192.168.10.54 is kamailio<br>
          </div>
          <div>192.168.10.47 is asterisk<br>
          </div>
          <div><br>
          </div>
          <div>If I called to this route kamailio will call to 34200
            through dispatcher via asterisk. But branch going directly
            to the ip phone.</div>
          <div>Is it possible to call all branches through dispatcher
            and asterisks?</div>
          <div><br>
          </div>
          <div>
            <div>U <a href="http://192.168.10.54:5060"
                moz-do-not-send="true">192.168.10.54:5060</a> -> <a
                href="http://192.168.10.47:5060" moz-do-not-send="true">192.168.10.47:5060</a></div>
            <div>INVITE <a href="http://sip:34200@172.16.3.7:5060"
                moz-do-not-send="true">sip:34200@172.16.3.7:5060</a>
              SIP/2.0.</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336"><sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336></a>.</div>
            <div>Via: SIP/2.0/UDP
              192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.0.</div>
            <div>Via: SIP/2.0/UDP
              172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.</div>
            <div>From: ".............. .......... ................" <<a
                href="mailto:sip%3A53003@192.168.10.54"
                moz-do-not-send="true">sip:53003@192.168.10.54</a>>;tag=1dc09a643aa66d85o0.</div>
            <div>To: <<a href="mailto:sip%3A1111@192.168.10.54"
                moz-do-not-send="true">sip:1111@192.168.10.54</a>>.</div>
          </div>
          <div>Call-ID: <a href="mailto:7c5b5710-57b4f8c9@172.16.3.4"
              moz-do-not-send="true">7c5b5710-57b4f8c9@172.16.3.4</a>.<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div>U <a href="http://192.168.10.54:5060"
                moz-do-not-send="true">192.168.10.54:5060</a> -> <a
                href="http://192.168.2.71:5060" moz-do-not-send="true">192.168.2.71:5060</a></div>
            <div>INVITE <a href="mailto:sip%3A34201@192.168.2.71"
                moz-do-not-send="true">sip:34201@192.168.2.71</a>
              SIP/2.0.</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336"><sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336></a>.</div>
            <div>Via: SIP/2.0/UDP
              192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.1.</div>
            <div>Via: SIP/2.0/UDP
              172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.</div>
            <div>From: ".............. .......... ................" <<a
                href="mailto:sip%3A53003@192.168.10.54"
                moz-do-not-send="true">sip:53003@192.168.10.54</a>>;tag=1dc09a643aa66d85o0.</div>
            <div>To: <<a href="mailto:sip%3A1111@192.168.10.54"
                moz-do-not-send="true">sip:1111@192.168.10.54</a>>.</div>
          </div>
          <div>Call-ID: <a href="mailto:7c5b5710-57b4f8c9@172.16.3.4"
              moz-do-not-send="true">7c5b5710-57b4f8c9@172.16.3.4</a>.<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">Aydar A. Kamalov</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>