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 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)? 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; }
Can anyone please guide me to that?
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
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?re...
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers