[OpenSIPS-Users] CDR Accounting Example

Andrew Hash yc_hbh1 at yahoo.com
Wed Jan 19 20:56:36 CET 2011


thanks!




________________________________
From: Anton Zagorskiy <a.zagorskiy at oyster-telecom.ru>
To: andrew.philp at just-tek.com; OpenSIPS users mailling list 
<users at lists.opensips.org>
Sent: Tue, January 18, 2011 3:29:29 AM
Subject: Re: [OpenSIPS-Users] CDR Accounting Example

Hi Andrew.

modparam("acc", "db_extra",
"src=$(dlg_val(from.uri){uri.user});dst=$(dlg_val(request.uri){uri.user});ch
annel=$dlg_val(channel);dstchannel=$dlg_val(dchannel)")
modparam("acc", "db_flag", 10)
modparam("acc", "db_url", "mysql://login:pass@host/db")
modparam("acc", "cdr_flag", 2)

...

Later in the script
setflag(2);
setflag(10);





$dlg_val(..) I'm setting up during the script.



WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagorskiy at oyster-telecom.ru
www.oyster-telecom.ru


From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Andrew Philp
Sent: Tuesday, January 18, 2011 2:00 PM
To: OpenSIPS users mailling list
Subject: [OpenSIPS-Users] CDR Accounting Example

Hi All,
Has anyone got a working example of the CDR accounting working with mysql. 
I have tried to get this sorted but I feel I am missing something.
Thanks in adavnce



_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110119/99e0f754/attachment.htm>


More information about the Users mailing list