<div>Hello Everyone,</div><div>I found the issue where $rU was miss matching AOR. AOR is 10101 and $rU is 10101-f9d8885664888255ec76762bfcfbd09c. The hash is added by bria push server.</div><br><div>So I solved the issue by correcting a little the lookup function.</div><br><div>if($hdr(User-Agent)=~"PBX") {</div><div>$avp(oexten) = $(rU{s.select,0,-});</div><div>$var(lookup) = "sip:" + $avp(oexten) + "@" + $rd;</div><div>xlog("L_INFO", "Match User-Agent, looking user --> $avp(oexten) and R-URI [$ru] in db\n");</div><div>} else {</div><div>$var(lookup) = $ru;</div><div>xlog("L_INFO", "Looking user --> $var(lookup) in db\n");</div><div>}</div><div>if(!lookup("location","$var(lookup)")) {</div><br><div>and so on ...</div><br><div>Again thank you, for help</div><br><div>volga629</div><br><br><div class="gmail_quote_attribution">On Sep 20 2018, at 8:02 am, Daniel-Constantin Mierla <miconda@gmail.com> wrote:</div><blockquote><br><div><br><br><div>On 20.09.18 09:59, Daniel Tryba wrote:</div><blockquote><div>On Thu, Sep 20, 2018 at 12:54:30AM -0300, volga629@networklab.ca wrote:</div><blockquote><div>User location lookup looks like can't handle long $rU like</div><div>10102-ce72256df4945bc472ed9c27a1037f46.</div><div>It always return -3 404 not found.</div></blockquote><br><div>This username is only 38 chars long, I have a username in a 5.1.4</div><div>environment with 39 chars that works just fine.</div><br><div>What backend for storage of location are you using? If it is a sql</div><div>backend, what length is the username in the location table?</div></blockquote><div>Just an extra hint -- do 'kamctl ul show' and see what is displayed for</div><div>the respective user. Is there a record for it? What is the state?</div><br><div>Cheers,</div><div>Daniel</div><br><div>--</div><div>Daniel-Constantin Mierla -- www.asipto.com</div><div>www.twitter.com/miconda -- www.linkedin.com/in/miconda</div><div>Kamailio World Conference -- www.kamailioworld.com</div><div>Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com</div><br><br><div>_______________________________________________</div><div>Kamailio (SER) - Users Mailing List</div><div>sr-users@lists.kamailio.org</div><div>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</div></div></blockquote><img class="mailspring-open" alt="Open Tracking" width="0" height="0" style="border:0; width:0; height:0;" src="https://link.getmailspring.com/open/1537475703.local-e40d4680-1492-v1.4.2-f587b7b7@getmailspring.com?recipient=c3ItdXNlcnNAbGlzdHMua2FtYWlsaW8ub3Jn">