Hello,
I am noticing that some of the time (not always consistent) that load_gw() / next_gw() will not always return the gateway with the lowest priority number.
For example, when I look up a route for 205595, I have three grp_ids (gateways) that services the destination; with them being separated with 1, 2, and 3 priorities:
id prefix from_uri grp_id priority 7468 205595 NULL 1 1 7469 205595 NULL 2 2 7470 205595 NULL 7 3
About 1/2 of the time, it will chose the priority 1 gateway, as it should. But randomly, it will choose the other gateways on the first try. In this particular case, all three gateways are going to the same destination IP (just using different hostnames in the "gw" mySQL table) - so I know the gateways are up. Also, I am not noticing any failures and going to the next gateway, like it choosing #1, it failing and then going to #2.
What kind of debugging can I do on this gateway selection process? I am running 1.5.5 notls, and have approximately 425K routes. Kamailio is started with "-m 512" for the additional memory.
Thanks,
-graham
Graham Wooden (personal) writes:
What kind of debugging can I do on this gateway selection process? I am running 1.5.5 notls, and have approximately 425K routes. Kamailio is started with "-m 512" for the additional memory.
graham,
1.5.5 is quite old and lcr implementation has changed a lot since then. i would suggest upgrading.
-- juha
Thanks for the reply Juha. I have a 3.3.0 system that I have been trying to get my routing logic converted over. I will keep working on that. Thanks again,
-graham
On 8/6/12 12:12 PM, "Juha Heinanen" jh@tutpro.com wrote:
Graham Wooden (personal) writes:
What kind of debugging can I do on this gateway selection process? I am running 1.5.5 notls, and have approximately 425K routes. Kamailio is started with "-m 512" for the additional memory.
graham,
1.5.5 is quite old and lcr implementation has changed a lot since then. i would suggest upgrading.
-- juha
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