Hello Everyone, User location lookup looks like can't handle long $rU like 10102-ce72256df4945bc472ed9c27a1037f46. It always return -3 404 not found.
here relevant log
Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>: [INVITE] Call going from LAN SourceIP <10.18.130.50> to WAN. Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>: Looking user --> 10102-ce72256df4945bc472ed9c27a1037f46 in db Sep 19 23:37:26 canlvprx01 /usr/sbin/kamailio[29217]: INFO: <script>: Got [INVITE] and status <null>
route[LOCATION] { $avp(oexten) = $rU; xlog("L_INFO", "Looking user --> $rU in db\n"); if (!lookup("location")) { $var(rc) = $rc; t_newtran(); switch ($var(rc)) { case -1: case -3: route(MSG_STORE); # Meaning SMS has being stored for offline delivery if(!t_check_status("202")) { xlog("L_INFO", "Got [$rm] and status [$rs]\n"); # For rest traffic proceed as normal send_reply("404", "Not Found"); } exit; case -2: send_reply("405", "Method Not Allowed"); exit; } } }
kamailio-5.1.3-1.gitf0dce0c99.fc27.x86_64
volga629