[SR-Users] Kamailio Contact header read-only
Ali Taher
ataher at vanrise.com
Wed Jun 3 13:03:40 CEST 2015
Hi Alex,
In contact header I'm getting last gateway is listed first , then gateways are ordered correctly.
Let's say I have 3 gateways ordered as 1,2,3 in LCR_rule_target table
I'm getting in the contact header : 3,1,2,3
I'm using below code
if (!load_gws(1, $rU, $fu))
{
sl_send_reply("502", "Unable To lOad GatEwAyS");
exit;
}
else while(next_gw())
{
append_branch();
}
sl_send_reply("300","Multiple Choices");
any help would be appreciated.
Ali
-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Alex Balashov
Sent: Wednesday, June 03, 2015 1:35 PM
To: Ali Taher
Subject: Re: [SR-Users] Kamailio Contact header read-only
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 | 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.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
More information about the sr-users
mailing list