Hello,

 

I don’t think that $ct is a read/write variable.

 

A contact change can be done with remove_hf/append_hf in an event route before sending the message out, for example. The main topic in this case is that the poster also uses topology hiding, and then the automatic restore of the Contact will not work anymore if it is changed also in the script.

 

My suggestion would be to speak with the carrier to see why they reject it the call with two record-route/VIAs. The VIA with 127.0.0.1 looks also a bit odd, maybe it is not added with another setup/configuration. But this is just guessing right now.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of David Villasmil
Sent: Tuesday, June 9, 2020 1:44 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] How to change contact in SIP INVITE

 

https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables

 

search for contact

 

On Tue, 9 Jun 2020 at 11:13, Trần Đức Thành <tranthanh@voip.com.vn> wrote:

Hi,

 

Anyone can help

 

Sincerely,
----
TRAN DUC THANH 
Technician

ZLINK TECHNOLOGY CO., Ltd


Add: 4th Floor, 14 Phao Dai Lang Str, Dong Da Dist., Hanoi, Vietnam 
186 Bis Tran Quang Khai, Dist 1, HCM, Vietnam 
Tel: (84-24) 7 309 99 68 / (84-28) 7309 99 68 
Mobile: (84)988612049 - (84)904706808 - Skype ID: thanhtd07
Email: tranthanh@voip.com.vn

 

ZLINK - VoIP Solution - Software Licensing - Server&Network Device

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--

Regards,

 

David Villasmil

email: david.villasmil.work@gmail.com

phone: +34669448337