<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Verdana,sans-serif" color="#000000">Hi,</font><div><font face="Verdana,sans-serif" color="#000000"><br></font></div><div><span style="font-family: Helvetica, Arial; font-size: 12pt; text-align: justify; background-color: rgb(255, 255, 255);">lookup("location") functions extracts username from Request-URI and relay INVITE without any username, causing UAC sends a CANCEL message. Is the function suppose to replace uri with "contact" field in the found entry in "location" table?</span></div><div><span style="font-family: Helvetica, Arial; font-size: 12pt; text-align: justify; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-family: Helvetica, Arial; font-size: 12pt; text-align: justify; background-color: rgb(255, 255, 255);">INVITE uri arrives at Kamailio:</span></div><div style="text-align: justify;"><font face="Courier New, sans-serif">Request-Line: INVITE sip:8181111111@example.net:5060 SIP/2.0<span style="font-size: 12pt; text-align: justify; background-color: rgb(255, 255, 255);"> </span></font></div><div><span style="font-family: Helvetica, Arial; font-size: 12pt; text-align: justify; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Helvetica, Arial"><span style="font-size: 12pt;">INVITE uri </span>leaves<span style="font-size: 12pt;"> Kamilio:</span></font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 0);"><font face="Courier New, sans-serif">Request-Line: INVITE sip:10.10.10.1:5060 SIP/2.0</font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Courier New, sans-serif"><br></font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Arial, sans-serif">lookup("location") function finding match and returns 1:     $rc=1</font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Courier New, sans-serif"><br></font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Courier New, sans-serif"><br></font></span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><font face="Arial, sans-serif">entry in "location" table for this call:</font></span></div><div><span style="font-family: 'Courier New', sans-serif; text-align: justify; font-size: 12pt; background-color: rgb(255, 255, 255);">*************************** 1. row ***************************</span></div><div><span style="text-align: justify; background-color: rgb(255, 255, 255);"><div style="font-family: 'Courier New', sans-serif;">           id: 104</div><div style="font-family: 'Courier New', sans-serif;">         ruid: uloc-557ad93a-2d6-1</div><div style="font-family: 'Courier New', sans-serif;">     username: 8181111111</div><div style="font-family: 'Courier New', sans-serif;">       domain: NULL</div><div style="font-family: 'Courier New', sans-serif;">      contact: sip:8181111111@10.10.10.1:5060</div><div style="font-family: 'Courier New', sans-serif;">     received: NULL</div><div style="font-family: 'Courier New', sans-serif;">         path: NULL</div><div style="font-family: 'Courier New', sans-serif;"><br></div><div><div><font face="Arial, sans-serif">Any help in this regard would be greatly appreciated</font></div></div><div><font face="Arial, sans-serif"><br></font></div><div><font face="Arial, sans-serif">Al,</font></div><div><font face="Arial, sans-serif">Thanks</font></div></span></div>                                        </div></body>
</html>