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
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
:) > The accounting flag has to setup before relaying. Change :) > your script to look like this. :) > Thanks, it worked, May God multipy his blessings on you Wilson.
does / will this give call lengths etc for billing ? or will it just record that a call was made from A to B ?
thanks
Jay Binks
Wilson Abigaba wrote:
:) > The accounting flag has to setup before relaying. Change :) > your script to look like this. :) > Thanks, it worked, May God multipy his blessings on you Wilson.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
You have to correlate INVITEs with BYEs -- the length is given by the difference of time when the two records were issued.
Daniel
On 9/9/2004 8:23 AM, Jay Binks wrote:
does / will this give call lengths etc for billing ? or will it just record that a call was made from A to B ?
thanks
Jay Binks
Wilson Abigaba wrote:
:) > The accounting flag has to setup before relaying. Change :) > your script to look like this. :) > Thanks, it worked, May God multipy his blessings on you Wilson.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers