[SR-Users] Kamailio LCR Multiple choices
Ali Taher
ataher at vanrise.com
Mon Jun 1 14:21:21 CEST 2015
Hi,
Below is the log I got (which is correct ordering)
2015-06-01T14:45:50.932170+03:00 ubuntu /usr/local/sbin/kamailio[58396]:
INFO: <script>: r-uri is <sip:9612 at 192.168.26.4>
2015-06-01T14:45:50.932398+03:00 ubuntu /usr/local/sbin/kamailio[58396]:
INFO: <script>: r-uri is <sip:9612 at 192.168.26.1>
2015-06-01T14:45:50.932549+03:00 ubuntu /usr/local/sbin/kamailio[58396]:
INFO: <script>: r-uri is <sip:9612 at 192.168.26.6>
2015-06-01T14:45:50.932681+03:00 ubuntu /usr/local/sbin/kamailio[58396]:
INFO: <script>: no more gateways>
It's weird that I'm getting last gateway at the first , than correct
ordering come next.
Regards,
Ali
-----Original Message-----
From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of
Juha Heinanen
Sent: Monday, June 01, 2015 1:01 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio LCR Multiple choices
execute in config:
load_gws(1);
if (next_gw()) {
xlog("L_INFO", "r-uri is <$ru>\n");
} else {
xlog("L_INFO", "no more gateways>\n"); }
if (next_gw()) {
xlog("L_INFO", "r-uri is <$ru>\n");
} else {
xlog("L_INFO", "no more gateways>\n"); }
if (next_gw()) {
xlog("L_INFO", "r-uri is <$ru>\n");
} else {
xlog("L_INFO", "no more gateways>\n"); }
if (next_gw()) {
xlog("L_INFO", "r-uri is <$ru>\n");
} else {
xlog("L_INFO", "no more gateways>\n"); }
and tell what came to syslog.
-- juha
_______________________________________________
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