[SR-Users] please help with some transformations.
Alex Balashov
abalashov at evaristesys.com
Wed Apr 3 20:18:18 CEST 2013
Hello Julian,
On 04/03/2013 01: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,
There is a core convenience function that can help with this, as long as
you're manipulating the request URI:
strip(3);
You referred to "the SIP URI", which, of course, is ambiguous since a
SIP request has many SIP URIs.
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
More information about the sr-users
mailing list