Hi,
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?
INVITE uri arrives at Kamailio:
Request-Line: INVITE sip:8181111111@example.net:5060 SIP/2.0
INVITE uri leaves Kamilio:
Request-Line: INVITE sip:10.10.10.1:5060 SIP/2.0
lookup("location") function finding match and returns 1: $rc=1
entry in "location" table for this call:
*************************** 1. row ***************************
id: 104
ruid: uloc-557ad93a-2d6-1
username: 8181111111
domain: NULL
contact: sip:8181111111@10.10.10.1:5060
received: NULL
path: NULL
Any help in this regard would be greatly appreciated
Al,
Thanks