[OpenSIPS-Users] cut a string at special char

Liviu Chircu liviu at opensips.org
Wed May 21 11:16:45 CEST 2014


Hello Mike,

1) the best solution for this is the "s.select" transformation [1]
2) if you want to extract the user from the Diversion URI, you can use 
the "uri.user" transformation [2]

[1]: http://www.opensips.org/Documentation/Script-Tran-1-12#toc6
[2]: http://www.opensips.org/Documentation/Script-Tran-1-12#toc22

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 05/21/2014 09:59 AM, Mike Claudi Pedersen wrote:
> is there a transformation that allows me to cut a str at a spcial char 
> like @ or *
> i need this to be able to cut a certain pice from a string sometime 
> its +0212345678*234 and sometimes its +021122345678*234 and this makes 
> it hard to use the {s.substr,x,y} transformation
>
> a 2nd question.
> in special cases i need to replace the $fU with $di before forwarding 
> the request, is this possible and if yes.. how?
>
> any help appreciated
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140521/ee8ff7c8/attachment.htm>


More information about the Users mailing list