[SR-Users] using re.subst with an $avp or $var

Vik Killa vipkilla at gmail.com
Fri Jan 8 22:34:32 CET 2016


Assuming the answer is no this is not possible, then does anyone know of a
way to accomplish this? Perhaps with textops module?
Thanks,
/V

On Fri, Jan 8, 2016 at 4:30 PM, Alex Balashov <abalashov at evaristesys.com>
wrote:

> On 01/08/2016 04:28 PM, Vik Killa wrote:
>
>              $var(destnumber1) =
>> $(ru{re.subst,/^sip:$var(PrefixMatch)(.*)@(.*)/\1/});
>>              $var(destnumber2) = $(ru{re.subst,/^sip:00(.*)@(.*)/\1/});
>>              xlog("L_INFO", "destnumber1 $var(destnumber1)\n");
>>              xlog("L_INFO", "destnumber2 $var(destnumber2)\n");
>>
>> In the above, destnumber2 works, yet destnumber1 does not.
>>
>
> If I may be so bold, I think you have your answer. :-)
>
> --
> 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160108/b7a577ee/attachment.html>


More information about the sr-users mailing list