[SR-Users] String Transformation Question

Alex Balashov abalashov at evaristesys.com
Sat Jan 11 00:24:44 CET 2020


What’s the error?

—
Sent from mobile, with due apologies for brevity and errors.

> On Jan 10, 2020, at 6:23 PM, Sam Ware <sam.ware at gmail.com> wrote:
> 
> 
> We are receiving traffic with a tech prefix.  We want to be able to use a # (hash tag) for the separator for the tech prefix and the remote user ($rU).  I was using the s.select transformation before when using * for separator, but I get an error because it appears that it being interpreted as a comment.  Any suggestions?
> 
> Example:
> ## How I was doing it with the *
> $avp(techprefix) = $(rU{s.select,0,*});
> 
> ## How I tried and got an error for the hash tag
> $avp(techprefix) = $(rU{s.select,0,#});
> -- 
> Sam  D Ware
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200110/67b5a194/attachment.html>


More information about the sr-users mailing list