[SR-Users] please help with some transformations.

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 3 20:18:44 CEST 2013


Hello,

if you just need to remove first 3 digits, use:

strip(3);

If the number of digits to strip is variables, use strip transformation:

- http://www.kamailio.org/wiki/cookbooks/4.0.x/transformations#sstrip_len

If does not work for you giving errors, paste here what you have in the 
config for that part.

Cheers,
Daniel

On 4/3/13 7:54 PM, julian arsanches wrote:
> Hi am new to kamilio , but able to make calls, i need to do something 
> really simple if someone can give me an example of it i will be 
> gratefull.
>
> just before the call gets relayed i need to delete a prefix from the 
> sip uri so it gets transformed to the same uir but less 3 digits.
>
> for example sip:123xxx at domain.com 
> <mailto:sip%3A123xxx at domain.com>  >>> changed to sip:xxxx at dmain.com 
> <mailto:sip%3Axxxx at dmain.com>
>
> i tryed with transformations but still too new and does give me so 
> many errors that kamailio don't start,
>
> tryed subs_uri  but i dont know how to tell it to just take the first 
> tree digits, it is usually done for adding prefixes.
>
> please help.
>
> thank you in advance.
>
> on my scenario i am having an asterisk that i dont control sending me 
>   an invite for with a prefix i need kamailio to forward that uri to 
> another server minus the prefix.
>
> thank you.
>
>
> _______________________________________________
> 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


-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
  - http://conference.kamailio.com -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/89cc3741/attachment.htm>


More information about the sr-users mailing list