[Serusers] Log statements

Jiri Kuthan jiri at iptel.org
Fri Jun 27 08:08:52 CEST 2003


The closes to what you are asking is acc and xlog modules. -jiri

At 11:27 PM 6/26/2003, Greg Fausak wrote:
>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 at 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
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/ 



More information about the sr-users mailing list