<div dir="ltr">I'm not trying to replace the R-URI like in your example, im trying to remove a prefix from the RURI</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 8, 2016 at 4:34 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/08/2016 04:28 PM, Vik Killa wrote:<br>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
             $var(destnumber1) =<br>
$(ru{re.subst,/^sip:$var(PrefixMatch)(.*)@(.*)/\1/});<br>
</blockquote>
<br></span>
But, it's certainly worth asking if what you're trying to accomplish here can't be accomplished differently...<br>
<br>
   $var(destnumber1) = "$rz:" + $var(PrefixMatch) + "@" + $rd + ":" + $rp;<br>
<br>
Or:<br>
<br>
  $var(destnumber1) = $_s($rz:$var(PrefixMatch)@$rd:$rp);<br>
<br>
-- Alex<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
303 Perimeter Center North, Suite 300<br>
Atlanta, GA 30346<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>