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
[email protected]
www.oyster-telecom.ru
From: [email protected]
[mailto:[email protected]] 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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users