[OpenSIPS-Users] CDR Accounting Example

Anton Zagorskiy a.zagorskiy at oyster-telecom.ru
Tue Jan 18 12:29:29 CET 2011


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





More information about the Users mailing list