<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>what do you mean with:</p>
    <p>"Both SIP trunks are IP registration only"</p>
    <p>Does it mean that you do not know the IPs upfront (they are not
      static values, they can change)? So the trunk sends REGISTER
      requests in order to let the proxy know where to send traffic to
      it?</p>
    <p>If you know the IP addresses upfront, then dispatcher should help
      (like the others recommended).</p>
    <p>Use ds_select_domain() to pick up round-robin sip-server2x, then
      use script operations to add the number in front of domain $rd and
      then to update the user part $rU<br>
    </p>
    <p>If it is the case with registrations, then let us know and we can
      provide hints how to solve that one as well.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 23.05.20 23:33, christian (cx labs)
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ8meWn2yFT8g4cKVO1jeXYioeij8-D4Yw2SqqH_QrGsgqG80w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm trying to set up a Kamailio server as a proxy to
          forward SIP messages between two trunks, where I manipulate
          only the INVITE in the following manner:</div>
        <div><br>
        </div>
        <div>incoming call:</div>
        <div>INVITEĀ +4969123456@server1</div>
        <div><br>
        </div>
        <div>outgoing call:</div>
        <div>round robin to</div>
        <div>INVITE user@4969123456-sip-server2a</div>
        <div>INVITE user@4969123456-sip-server2b<br>
        </div>
        <div>INVITE user@4969123456-sip-server2c<br>
        </div>
        <div><br>
        </div>
        <div>Can anyone point me in the right direction? Both SIP trunks
          are IP registration only. Also, I am aware how strange this
          is, but the upstream service has decided to interpret SIP in a
          novel way.</div>
        <div><br>
        </div>
        <div>Cheers,</div>
        <div>Chris</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>