Greetings,
I need a little help with the LCR module.  I am running Kamailio 4.1.2. 

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.

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".

kamcmd> lcr.dump_gws
{
        lcr_id: 1
        gw_id: 11
        gw_index: 6
        gw_name: Route A
        scheme: sip
        ip_addr: 1.2.3.4
        hostname:
        port: 5060
        params:
        transport: UDP
        strip: 0
        prefix:
        tag:
        flags: 2
        defunct_until: 0
}
{
        lcr_id: 1
        gw_id: 1
        gw_index: 7
        gw_name: Route P
        scheme: sip
        ip_addr: 4.3.2.1
        hostname:
        port: 5060
        params:
        transport: UDP
        strip: 0
        prefix: DLR#
        tag:
        flags: 0
        defunct_until: 0
}


kamcmd> lcr.dump_rules
{
        lcr_id: 1
        rule_id: 31
        prefix: +1
        from_uri: 2089328663
        request_uri:
        stopper: 0
}
{
        gw_index: 6
        priority: 1
        weight: 1
}
{
        lcr_id: 1
        rule_id: 5
        prefix: +1
        from_uri:
        request_uri:
        stopper: 0
}
{
        gw_index: 7
        priority: 1
        weight: 1
}