Hi Alex,

 

This is related to post Kamailio LCR Multiple choices I created before, where last gateway is listed at the first in contact header.

So as I didn’t get a solution from your side regarding this issue , I tried to strip first gateway from contact header.

 

Regards,

Ali

 

From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Wednesday, June 03, 2015 12:00 PM
To: Ali Taher
Subject: Re: [SR-Users] Kamailio Contact header read-only

 

Ali,

 

With the exception of a few, pseudovariables that expose parts of a SIP message (such as $ct) are read-only, so you cannot assign values to them.

 

Why are you manipulating the Contact header? This is not something proxies should ordinarily do.



But, assuming you really want to/know what you're doing:



remove_hf("Contact");

append_hf("Contact: <sip:...>\r\n");

 

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/http://www.csrpswitch.com/

Sent from my BlackBerry.