[OpenSIPS-Users] Pseudo variable in Route {...} is empty. Why?
John Quick
john.quick at smartvox.co.uk
Fri Dec 9 04:18:17 EST 2016
There is a very simple explanation for the error message you are seeing.
This line of code
if($(ct.fields(uri){uri.host}) == "127.0.0.1" )
will work just fine as long as there is a Contact header in the SIP request.
However, some SIP requests do not have a Contact header and that is when you
see this error. (Or maybe, less likely, the Contact header does not contain
a URI).
You could use is_present_hf("Contact") to eliminate the error, or you could
just ignore it because it is harmless.
John Quick
Smartvox Limited
More information about the Users
mailing list