[SR-Users] Contact header modification - Kamailio

Ankit Jayswal ankit.jayswal at engagely.ai
Mon Aug 1 14:36:47 CEST 2022


Hello Team,

I am in need to modify the contact header in Kamailio before sending an
INVITE request to the SIP trunk provider. Basically the IP address I need
to modify in the contact header. Please suggest a better way to do this.
Below is an example.

*OLD (Existing):*
Contact: <sip:009169240xxx@*45.118.162.x:5080*;alias=10.52.26.102~5080~1>

*NEW (Needed):*
Contact: <sip:00912269240xxx@*10.52.26.98:5060 <http://10.52.26.98:5060>*>

I tried various functions from the textops module but no hope.
I am looking for a function that can replace the contact header's value.
Please help me with this.

-- 
Thanks & Regards,
*Ankit Jayswal* | Specialist - Software Development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220801/61714a95/attachment.htm>


More information about the sr-users mailing list