<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Aron,<br>
        <br>
        You can use the core functions like prefix() or strip() :<br>
           
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc25">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc25</a><br>
           
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc52">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc52</a><br>
        <br>
        Also take a look at the construct_uri() function:<br>
           
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc11">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc11</a><br>
        <br>
        In regards to the URI transformation , it does not return the
        schema part, but this can be easily added if needed.<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 24.02.2015 07:44, Podrigal, Aron wrote:<br>
    </div>
    <blockquote
cite="mid:CANJp-yhzaBger2puX-4zyYqNwYkQXgWA618rE6typ+QA0auMuQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>When doing transformations on a uri, how can I efficiently
          get the type of uri 'sip|sips|tel' ?</div>
        <div><br>
        </div>
        <div>usually my transformations involve stripping/prepending
          digits from/to the user part of the uri. I don't want to
          rewrite the entire uri. because I want to preserve the
          sips|sip part as it was originally. As of now I'm using the
          subst() function, but it gets really messy for some simple
          tasks. Any suggestions?</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Aron</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>