<div dir="ltr">Hello,<div>Yes, actually my call flow for outbound calls is, Kamailio => Asterisk => Kamailio (route(PSTN)). SIP trunk is available at Kamailio server.<br>So, when final outbound INVITE goes to the SIP trunk provider it expects a particular Contact header IP, instead of Asterisk server IP.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 1, 2022 at 10:20 PM Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Before you do this, I would ask yourself why you’re doing this, and whether it’s a good idea from a technical point of view.<br>
<br>
> On Aug 1, 2022, at 8:36 AM, Ankit Jayswal <<a href="mailto:ankit.jayswal@engagely.ai" target="_blank">ankit.jayswal@engagely.ai</a>> wrote:<br>
> <br>
> Hello Team,<br>
> <br>
> 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.<br>
> <br>
> OLD (Existing):<br>
> Contact: <sip:009169240xxx@45.118.162.x:5080;alias=10.52.26.102~5080~1><br>
> <br>
> NEW (Needed):<br>
> Contact: <<a href="http://sip:00912269240xxx@10.52.26.98:5060" rel="noreferrer" target="_blank">sip:00912269240xxx@10.52.26.98:5060</a>><br>
> <br>
> I tried various functions from the textops module but no hope.<br>
> I am looking for a function that can replace the contact header's value. Please help me with this.<br>
> <br>
> -- <br>
> Thanks & Regards,<br>
> Ankit Jayswal | Specialist - Software Development<br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
> * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
> * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>