<p dir="ltr">Thanks Daniel,<br>
Both are  good ideas and I will try and see how it goes. I just wanted to confirm that there is no way we can modify CallID of branches via script. This is fine too. <br>
Thanks again,</p>
<p dir="ltr">Best Regards,<br>
Sammy </p>
<div class="gmail_quote">On Jul 6, 2016 06:11, "Daniel-Constantin Mierla" <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>maybe you can loop through a 2nd instance of kamailio (can be
      same server, different port) that has topoh enabled.</p>
    <p>Otherwise, if the gateway is matching on full r-uri, you can try
      to add some extra uri params, which are not relevant for target
      number.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div>On 05/07/16 21:54, SamyGo wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,<br>
        <br>
        <div>I've a very strange scenario to work on which requires me
          to parallel fork the call to the same Destination provider.
          The only problem here is that they think that the second
          INVITE with different branch tag is a re-transmission and
          hence only take one call forward. <br>
          <br>
          I do not have to modify any R-URI or any headers, hence just
          'append_branch() before t_relay() is in the code. <br>
          <br>
          ...<br>
          <font face="monospace, monospace">$ru = "sip:" + $rU + "@" +
            $avp(carrier_ip) + ":" + $avp(carrier_port);<br>
            append_branch();<br>
            route(RELAY);</font></div>
        <div>...<br>
          <br>
        </div>
        <div><b>Question:</b> Is there anyway possible I can change the
          CallID of the forked INVITEs ?<br>
          <br>
          I have tried using Topoh module, but it still puts the same
          CallID before sending out. Different from the A-leg but the
          Sent out INVITEs have same Call-ID value.<br>
          <br>
          In other weird scenario, I've also tried branching, and
          looping call within Kamailio before sending out to carrier
          hoping that Kamailio would treat the two different calls and
          Topoh would change the Call-ID on both INVITEs before sending
          out..<br>
          <font face="monospace, monospace"><br>
            ...<br>
            if(is_present_hf("X-FORKED")) {<br>
                $ru = "sip:" + $rU + "@" + $avp(carrier_ip) + ":" +
            $avp(carrier_port);<br>
                route(RELAY);<br>
            }else {<br>
                append_hf("X-FORKED: 1\r\n");<br>
                append_branch();<br>
                route(RELAY);<br>
            }<br>
            ...</font><br>
          <br>
          Still I get same Call-ID on outgoing branched call.<br>
          <br>
          I could branch out one INVITE to a MediaServer, say
          FreeSWITCH/Asterisk but again I don't want to have that
          component bottleneck the throughput. That could be my very
          last option.<br>
          <br>
          <br>
          Looking for some ideas.<br>
          <br>
          Regards,<br>
          Sammy</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div>