Hello,
I'm using LCR module to send multiple choices. Everything works fine so far , yet I have a problem that last gateway comes first, then gateways are ordered correctly. Below is correct sorting of gateways: First gateway : 192.168.26.4 Second gateway: 192.168.26.1 Third gateway : 192.168.26.6 Below is Invite response I'm getting, as you can see 192.168.26.6 (last gateway) is included as the first gateway , then 192.168.26.4 (first gateway) comes next. Via: SIP/2.0/UDP 192.168.26.3:37066;branch=z9hG4bK-d8754z-885c37410729cc3b-1---d8754z-;rport= 37066;received=192.168.26.3 To: "9612"<sip:9612@192.168.110.181>;tag=b27e1a1d33761e85846fc98f5f3a7e58.8d8f From: "5000"<sip:5000@192.168.110.181>;tag=aa37be29 CSeq: 1 INVITE Call-ID: NTY0YjVmYzZiNzc3ZDA3ZDA3MmM0OGM1ZDBhZGZhNTM. Contact: <sip:9612@192.168.26.6>, <sip:9612@192.168.26.4>, <sip:9612@192.168.26.1>, <sip:9612@192.168.26.6> Below is routing block I'm using : if (is_method("INVITE")) { 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"); exit; } Appreciate your help. Regards, Ali
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users