<div dir="ltr"><div><div>Greetings,<br>I need a little help with the LCR module. I am running Kamailio 4.1.2. <br><br></div>The LCR module is behaving in a way that is inconsistent with our old 1.5 versions. We have a customer that passes a certain caller-id. That from_uri should be routing over a specific trunk. Here are the relevant bits of the LCR data from kamcmd.<br>
<br></div>I would expect gw_index: 7 to match before gw_index: 6 here, but that is not the case. Any help would be greatly appreciated. Please note, i Have stripped out a bunch of other routes that are not in play here... hence the reason gw_index starts at "6".<br>
<br>kamcmd> lcr.dump_gws<br>{<br> lcr_id: 1<br> gw_id: 11<br> gw_index: 6<br> gw_name: Route A<br> scheme: sip<br> ip_addr: 1.2.3.4<br> hostname:<br> port: 5060<br>
params:<br> transport: UDP<br> strip: 0<br> prefix:<br> tag:<br> flags: 2<br> defunct_until: 0<br>}<br>{<br> lcr_id: 1<br> gw_id: 1<br> gw_index: 7<br>
gw_name: Route P<br> scheme: sip<br> ip_addr: 4.3.2.1<br> hostname:<br> port: 5060<br> params:<br> transport: UDP<br> strip: 0<br> prefix: DLR#<br> tag:<br>
flags: 0<br> defunct_until: 0<br>}<br><br><br>kamcmd> lcr.dump_rules<br>{<br> lcr_id: 1<br> rule_id: 31<br> prefix: +1<br> from_uri: 2089328663<br> request_uri:<br> stopper: 0<br>
}<br>{<br> gw_index: 6<br> priority: 1<br> weight: 1<br>}<br>{<br> lcr_id: 1<br> rule_id: 5<br> prefix: +1<br> from_uri:<br> request_uri:<br> stopper: 0<br>}<br>
{<br> gw_index: 7<br> priority: 1<br> weight: 1<br>}<br></div>