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@domain.com mailto:sip%3A123xxx@domain.com >>> changed to sip:xxxx@dmain.com mailto:sip%3Axxxx@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