<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">thanks!<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Anton Zagorskiy <a.zagorskiy@oyster-telecom.ru><br><b><span style="font-weight: bold;">To:</span></b> andrew.philp@just-tek.com; OpenSIPS users mailling list <users@lists.opensips.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, January 18, 2011 3:29:29 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] CDR Accounting Example<br></font><br>
Hi Andrew.<br><br>modparam("acc", "db_extra",<br>"src=$(dlg_val(from.uri){uri.user});dst=$(dlg_val(request.uri){uri.user});ch<br>annel=$dlg_val(channel);dstchannel=$dlg_val(dchannel)")<br>modparam("acc", "db_flag", 10)<br>modparam("acc", "db_url", "mysql://login:pass@host/db")<br>modparam("acc", "cdr_flag", 2)<br><br>...<br><br>Later in the script<br>setflag(2);<br>setflag(10);<br><br><br><br><br><br>$dlg_val(..) I'm setting up during the script.<br><br><br><br>WBR, Anton Zagorskiy<br>VoIP Developer, Oyster Telecom<br>Phone.: +7 812 601-0666<br>Fax: +7 812 601-0593<br><a ymailto="mailto:a.zagorskiy@oyster-telecom.ru" href="mailto:a.zagorskiy@oyster-telecom.ru">a.zagorskiy@oyster-telecom.ru</a><br><a target="_blank" href="http://www.oyster-telecom.ru">www.oyster-telecom.ru</a><br><br><br>From: <a ymailto="mailto:users-bounces@lists.opensips.org" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a><br>[mailto:<a
ymailto="mailto:users-bounces@lists.opensips.org" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Andrew Philp<br>Sent: Tuesday, January 18, 2011 2:00 PM<br>To: OpenSIPS users mailling list<br>Subject: [OpenSIPS-Users] CDR Accounting Example<br><br>Hi All,<br>Has anyone got a working example of the CDR accounting working with mysql. <br>I have tried to get this sorted but I feel I am missing something.<br>Thanks in adavnce<br><br><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><span><a target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span><br></div></div>
</div><br></body></html>