[Serusers] Log statements

Greg Fausak greg at august.net
Thu Jun 26 23:27:59 CEST 2003

I've got a couple situations I'd like to log.

One is this:

		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 at");

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?


More information about the sr-users mailing list