That last statement was in-accurate. Im not trying to modify the R-URI at all actually. I'd like to create a variable.
On Fri, Jan 8, 2016 at 4:38 PM, Vik Killa <vipki...@gmail.com> wrote: > I'm not trying to replace the R-URI like in your example, im trying to > remove a prefix from the RURI > > On Fri, Jan 8, 2016 at 4:34 PM, Alex Balashov <abalas...@evaristesys.com> > wrote: > >> On 01/08/2016 04:28 PM, Vik Killa wrote: >> >> $var(destnumber1) = >>> $(ru{re.subst,/^sip:$var(PrefixMatch)(.*)@(.*)/\1/}); >>> >> >> But, it's certainly worth asking if what you're trying to accomplish here >> can't be accomplished differently... >> >> $var(destnumber1) = "$rz:" + $var(PrefixMatch) + "@" + $rd + ":" + $rp; >> >> Or: >> >> $var(destnumber1) = $_s($rz:$var(PrefixMatch)@$rd:$rp); >> >> -- Alex >> >> >> -- >> Alex Balashov | Principal | Evariste Systems LLC >> 303 Perimeter Center North, Suite 300 >> Atlanta, GA 30346 >> United States >> >> Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) >> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users