<p dir="ltr">Sounds good. Thank you very much.</p>
<div class="gmail_quote">On Feb 25, 2015 3:50 PM, &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div><tt>Hi Aron,<br>
        <br>
        Ionut did a patch for adding uri.schema - see
<a href="https://github.com/OpenSIPS/opensips/commit/2e25e957b592747289720220a2f510d01d7a8fe7" target="_blank">https://github.com/OpenSIPS/opensips/commit/2e25e957b592747289720220a2f510d01d7a8fe7</a><br>
        <br>
        It is only on master, but you can backport it to 1.11 if needed.
        Let us know if does the trick for you.<br>
        <br>
        Regards,<br>
      </tt>
      <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
      On 24.02.2015 23:13, Podrigal, Aron wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Thanks, the <span style="font-family:monospace;font-size:10.4000005722046px">construct_uri()
          function is very </span><font style="font-size:10.4000005722046px" face="monospace">helpful.
          But how would I extract the sip|sips part of an existing uri
          (specifically from the Remote-Party-ID)? </font><font face="arial, helvetica, sans-serif">also I assume that<span style="font-size:10.4000005722046px"> </span></font><span style="font-family:monospace;font-size:10.4000005722046px">prefix()
          or strip()</span><font face="arial, helvetica, sans-serif">
          only helps for the request uri and not for remote-party-id
          uri. correct?</font></div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Feb 24, 2015 at 5:00 AM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div><tt>Hi Aron,<br>
                  <br>
                  You can use the core functions like prefix() or
                  strip() :<br>
                      <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc25" target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc25</a><br>
                      <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc52" target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc52</a><br>
                  <br>
                  Also take a look at the construct_uri() function:<br>
                      <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc11" target="_blank">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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <div>
                  <div> On 24.02.2015 07:44, Podrigal, Aron
                    wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">Hi all,
                      <div><br>
                      </div>
                      <div>When doing transformations on a uri, how can
                        I efficiently get the type of uri &#39;sip|sips|tel&#39;
                        ?</div>
                      <div><br>
                      </div>
                      <div>usually my transformations involve
                        stripping/prepending digits from/to the user
                        part of the uri. I don&#39;t want to rewrite the
                        entire uri. because I want to preserve the
                        sips|sip part as it was originally. As of now
                        I&#39;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></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>