Re: [SR-Users] Kamailio Contact header read-only

2015-06-04 Thread Ali Taher
rsday, June 04, 2015 12:27 PM To: Ali Taher Subject: Re: [SR-Users] Kamailio Contact header read-only ‎Hi Ali, Sorry, I've never used the lcr module. Whenever we build anything, we just pull lists of gateways from our own database tables with sqlops, typically using sql_xquery() to store the

Re: [SR-Users] Kamailio Contact header read-only

2015-06-04 Thread Alex Balashov
s.com/, http://www.csrpswitch.com/ Sent from my BlackBerry.   Original Message   From: Ali Taher Sent: Thursday, June 4, 2015 09:59 To: 'Kamailio (SER) - Users Mailing List' Reply To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio Contact h

Re: [SR-Users] Kamailio Contact header read-only

2015-06-04 Thread Ali Taher
{ append_branch(); } sl_send_reply("300","Multiple Choices"); any help would be appreciated. Ali -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 03, 2015

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
} sl_send_reply("300","Multiple Choices"); any help would be appreciated. Ali -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Wednesday, June 03, 2015 1:35 PM To: Ali Taher Su

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Alex Balashov
Ali, ‎That's not going to work, for reasons related to the state of the message body at the time you're manipulating it. You need to get to the bottom of the fundamental issue: why are the gateways not in the order you want? And you need to fix it on that level.‎ -- Alex Balashov | Principal |

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
: sr-users [mailto:sr-users-boun...@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

Re: [SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Alex Balashov
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 somethi

[SR-Users] Kamailio Contact header read-only

2015-06-03 Thread Ali Taher
Hello, I'm trying to change contact header in SIP response message by stripping first characters (for testing only) as below : $ct = $(ct{s.strip,25}); But I got below error saying that $ct is read-only: 0(15410) : [cfg.y:3419]: yyerror_at(): parse error in config file /usr/local/etc/kam