<div dir="ltr"><div>OK.  WE have made a change so that the priority is 0 for the route that has the from_uri.  We are still not seeing this route get matched properly.<br><br></div>Here is what the INVITE looks like:<br><br>

<pre>INVITE <a href="http://sip:+19137274555@1.2.3.4:5060" target="_blank">sip:+19137274555@1.2.3.4:5060</a> SIP/2.0
Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK5b52e524;rport
From: "2089328663" <<a href="mailto:sip%3A2089328663@blah.com" target="_blank">sip:2089328663@blah.com</a>>;tag=as37fe796f
To: <<a href="http://sip:+19137274555@1.2.3.4:5060" target="_blank">sip:+19137274555@1.2.3.4:5060</a>>
Contact: <<a href="mailto:sip%3A2089328663@1.2.3.4" target="_blank">sip:2089328663@1.2.3.4</a>>
Call-ID: <a href="mailto:09ed895a452fac516a0d11e237bd1f35@blah.com" target="_blank">09ed895a452fac516a0d11e237bd1f35@blah.com</a>
CSeq: 102 INVITE
User-Agent: Kamailio
Max-Forwards: 70
Date: Tue, 22 Apr 2014 14:42:16 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
P-Account-ID: 12680001
P-Charge-Info: "<a href="tel:4019921313" value="+14019921313" target="_blank">4019921313</a>" <<a href="mailto:sip%3A4019921313@blah.com" target="_blank">sip:4019921313@blah.com</a>>
Content-Type: application/sdp
Content-Length: 236<br><br></pre><pre>Here is what lcr.dump_rules looks like:<br> kamcmd> lcr.dump_rules<br>
 {<br>         lcr_id: 1<br>         rule_id: 31<br>         prefix: +1<br>         from_uri: <a href="tel:2089328663" value="+12089328663" target="_blank">2089328663</a><br>         request_uri:<br>         stopper: 0<br>
 }<br> {<br>         gw_index: 6<br>
         priority: 0<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></pre><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 12:56 AM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Geoffrey Mina writes:<br>
<br>
> The LCR module is behaving in a way that is inconsistent with our old 1.5<br>
> versions.  We have a customer that passes a certain caller-id.  That<br>
> from_uri should be routing over a specific trunk.  Here are the relevant<br>
> bits of the LCR data from kamcmd.<br>
><br>
> I would expect gw_index: 7 to match before gw_index: 6 here, but that is<br>
> not the case.  Any help would be greatly appreciated.  Please note, i Have<br>
> stripped out a bunch of other routes that are not in play here... hence the<br>
> reason gw_index starts at "6".<br>
<br>
</div>you didn't show how from uri of the call looks like.  if it matches<br>
from_uri: <a href="tel:2089328663" value="+12089328663">2089328663</a>, it will also match from_uri: and either rule can<br>
get selected.<br>
<br>
-- juha<br>
<div class=""><br>
> kamcmd> lcr.dump_rules<br>
> {<br>
>         lcr_id: 1<br>
>         rule_id: 31<br>
>         prefix: +1<br>
>         from_uri: <a href="tel:2089328663" value="+12089328663">2089328663</a><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>> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>