I've got a couple situations I'd like to log.
One is this:
if(!(uri==myself))
{
log(1, "domain not mine $uri");
};
In the above example, I'd like to see the uri in
the log file. Another example:
if (!is_user_in("credentials","local"))
{
log(1,"NO local calls permitted for $uri");
rewriteuri("sip:addaline.com-EN_US-error.not_authorized@64.90.42.15");
t_relay();
break;
};
In this example I'd like to see who actually tried to make
a non-authorized call. Is there an printf() like log, and if
there is what variables do I have access to for printing?
---greg