Re: [OpenSIPS-Users] cut a string at special char

2014-05-21 Thread Răzvan Crainea
Hi, Mike! Pay attentions that you can not simply write the $fU variable. Instead, you should re-construct the From URI with the correct username and replace the whole URI using uac_replace_from() function[3]. [3] http://www.opensips.org/html/docs/modules/1.12.x/uac#id293710 Best regards, Ra

Re: [OpenSIPS-Users] cut a string at special char

2014-05-21 Thread Liviu Chircu
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/Sc

[OpenSIPS-Users] cut a string at special char

2014-05-21 Thread Mike Claudi Pedersen
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