[Serusers] accounting use

Daniel-Constantin Mierla Daniel-Constantin.Mierla at fokus.fraunhofer.de
Thu Jan 20 11:46:59 CET 2005



On 01/19/05 19:12, Peter wrote:

>Hi,
>
>I am a new user of SER. Need some help with
>understanding accounting module. I want to see all
>INVITES logged to syslog.
>
if(method=="INVITE")
{
    setflag(1);
}

> If I understand it
>correctly, using acc.so would allow me to do that.
>Also, I need to include this statement modparam("acc",
>"log_level", 1). And then where should I use
>setflag(1)?
>
do not forget:

modparam("acc", "log_flag", 1 )

> I want all transactions reported  whether
>they were successfully handled by SER or not. Even if
>SER sends back a 404 using the following code snippet,
>I want that reported:
>  if (!lookup("location")) {
>                   sl_send_reply("404", "Not Found");
>                        break;
>                }
>
>  
>
in this case, it is very likely that you don't have a transaction, so 
acc cannot report it. You can use xlog module to  write some parts of 
the request to syslog, or to create a transaction for that request -- 
see tm module.

>Can anyone please guide me to that?
>  
>
A simple example file for accounting is:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/examples/acc.cfg?rev=1.3&content-type=text/vnd.viewcvs-markup

Daniel

>Thanks much in advance!!
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam
>protection around 
>http://mail.yahoo.com 
>
>
>		
>__________________________________ 
>Do you Yahoo!? 
>Yahoo! Mail - Easier than ever with enhanced search. Learn more.
>http://info.mail.yahoo.com/mail_250
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>  
>




More information about the sr-users mailing list