<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hello Kevin,<br>
        <br>
        Simply do in your script (after the ENUM lookup):<br>
        <br>
        $rd = "foo.com";&nbsp; # see
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc65">http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc65</a><br>
        $rp = 1234;&nbsp; # see
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc70">http://www.opensips.org/Documentation/Script-CoreVar-1-10#toc70</a><br>
        <br>
        Regards,<br>
      </tt>
      <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>
      On 28.03.2014 00:28, Kevin Mathy wrote:<br>
    </div>
    <blockquote
cite="mid:CAOmzhXkumf1R3SPT5D1hv-yK03Dvix9i56yuoGSZbGKodFgdFg@mail.gmail.com"
      type="cite">Hi Bogdan,
      <div><br>
      </div>
      <div>I'd like to modify only the hostname (and port) part of the
        RURI, to put inside informations taken from the location table.</div>
      <div><br>
      </div>
      <div>I've made it this afternoon, using a homemade perl script
        (which I'll be able to share tomorrow if needed)<span></span>,
        and it works well, but for the process to be perfect, I prefer
        if I can avoid the perl method, and only use Opensips's
        integrated methods ;-)</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div><br>
      </div>
      <div>Best regards,</div>
      <div><br>
      </div>
      <div>Kevin</div>
      <div><br>
      </div>
      <div><br>
        Le&nbsp;jeudi 27 mars 2014, Bogdan-Andrei Iancu &lt;<a
          moz-do-not-send="true" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;
        a &eacute;crit&nbsp;:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div><tt>Hi Kevin,<br>
                <br>
                Nothing is normal here, everything is strange, so.....
                :)<br>
                <br>
                You can modify any parts of the RURI, no problem - what
                exactly part of it you want to change ? <br>
                <br>
                Regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              On 27.03.2014 12:31, Kevin Mathy wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi List,&nbsp;
                <div><br>
                </div>
                <div>What I'm trying to do may be "strange" for some
                  people, but here is the situation :</div>
                <div>I've got an OpenSIPS server, which do some ENUM
                  requests to route Incoming calls (from me, the
                  provider, to the customers).</div>
                <div>It works well when my customer's endpoints are
                  configured with a public IP, without any NAT.</div>
                <div><br>
                </div>
                <div>But, when those endpoints connect to my server
                  through a NAT router, I face a problem for incoming
                  calls, as the port used by endpoint isn't the same as
                  the classical 5060.</div>
                <div><br>
                </div>
                <div>So, my question is : is there a way to simply
                  modify the Request-URI obtained after an ENUM query,
                  with the informations inserted in the location table
                  ?&nbsp;</div>
                <div><br>
                </div>
                <div>I've got an idea on how to make it with a perl
                  script, but I prefer to not use this method, and to
                  use only existant modules of methods.</div>
                <div><br>
                </div>
                <div>Thanks for your ideas</div>
                <div><br>
                </div>
                <div>Kevin</div>
                <div><br>
                </div>
                <div><br clear="all">
                  <div><b>
                      <div><span style="font-weight:normal">Bien
                          cordialement,&nbsp;</span></div>
                      <div><span style="font-weight:normal">Best
                          Regards,&nbsp;</span></div>
                      <div><span style="font-weight:normal"><br>
                        </span></div>
                    </b><b>Kevin MATHY</b> |<b>&nbsp;</b>Ing&eacute;nieur VoIP<br>
                    <div>
                      <div><b><br>
                        </b></div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <img moz-do-not-send="true"
src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif"><br>
              <fieldset></fieldset>
              <br>
              <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="javascript:_e(%7B%7D,'cvml','Users@lists.opensips.org');" target="_blank">Users@lists.opensips.org</a>
<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>
</pre>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      -- <br>
      <b>
        <div><span style="font-weight:normal">Bien cordialement,&nbsp;</span></div>
        <div><span style="font-weight:normal">Best Regards,&nbsp;</span></div>
        <div><span style="font-weight:normal"><br>
          </span></div>
      </b><b>Kevin MATHY</b> |<b>&nbsp;</b>Ing&eacute;nieur VoIP<br>
      <div>
        <div><b><br>
          </b></div>
      </div>
      <br>
      <br>
      <img moz-do-not-send="true"
src="http://www.hexanet.fr/sites/files/hexanet/files/20130205_signature_hexanet.gif"></blockquote>
    <br>
  </body>
</html>