The accounting flag has to setup before relaying. Change your script to look like this.
# forward to current uri now; use stateful forwarding; that # works reliably even if we forward from TCP to UDP if ( (method=="INVITE") || (method=="ACK" || (method=="BYE")) { # <--- record_route(); # <--- setflag(1); # <--- }; # <---
if (!t_relay()) { sl_reply_error(); };
And delete the script logic after that and you will get accounting records.
Zeus
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Wilson Abigaba Sent: Tuesday, 7 September 2004 8:49 PM To: serusers@lists.iptel.org Subject: [Serusers] ser-mysql accounting: Nothing is accounted or recorded
I've been with this problem for over 2 weeks now..i still havn't found a solution. I always read ser-accouting problems and possible solutions and apply them to my sip server but nothing good has come out. I installed ser-0.8.14 on 4.9-STABLE FreeBSD running mysql Ver 12.22 Distrib 4.0.16, for portbld-freebsd4.9 (i386) and all seems to be well. I then added the acc module by reinstalling. I uncommented out the sql line in acc/Makefile and then made exlude_module="" modules, and finally installed. I start SER without any errors, in full debug mode and logging its stuff on STDOUT, when I make a call I even see it sending invite,trying etc. but NOTHING is recorded in the ser database! Some one please look at my ser.cfg and tell me what may be wrong, many thanks ...
Regards, Wilson