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



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to