[SR-Users] String Transformation Question

Sam Ware sam.ware at gmail.com
Sat Jan 11 00:22:17 CET 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200110/b27d4e7e/attachment.html>


More information about the sr-users mailing list