<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Simply replace the $ru ($ru = NEWURI) and the call goes to the right
    destination<br>
    <br>
    If the remapping is fixed you and use ALIAS. for example.<br>
    <br>
    <div class="moz-cite-prefix">Il 10/03/2014 08.11, Mike Claudi
      Pedersen ha scritto:<br>
    </div>
    <blockquote
cite="mid:CADats6EfQF1WH+fOkwhzA+ezYY6AVcK-Z1svS9vYAzyt9o35Uw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Can someone please help me ind the right direction,
        i need to implement a system to rewrite the destination URI from
        a list of possible destinations.
        <div>eg</div>
        <div>call from 20304050</div>
        <div>&nbsp; &nbsp;<span
            style="background-color:rgb(251,254,250);color:rgb(102,102,102);font-family:'Lucida
            Console','Andale Mono','Courier
            New',Courier;font-size:0.9em;line-height:21.593280792236328px">if(method
            == "INVITE") {</span>
          <pre class="" style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);background-color:rgb(251,254,250);color:rgb(102,102,102);line-height:21.593280792236328px">            "check where 20304050 is"</pre>
          <div>
            <div><br>
            </div>
            <div>then return and replace 20304050 with something like
              +4520304050@voip123.local and redirect</div>
            <div><br>
            </div>
            -- <br>
            <div dir="ltr">Med venlig hilsen<br>
              ipnordic A/S<br>
              <div><br>
              </div>
              <div>Mike Claudi Pedersen</div>
              <div>Tekniker</div>
              <div>
                <div><br>
                </div>
                Telefon:&nbsp;<span
style="color:rgb(61,58,54);font-family:aller_lightregular,Arial,Helvetica,sans-serif">79301033</span><br>
                <a moz-do-not-send="true" href="http://www.ipnordic.dk/"
                  style="color:rgb(17,85,204)" target="_blank">www.ipnordic.dk</a></div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>
  </body>
</html>