<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I solve the problem.<br>
<br>
The issue was that freeradius was not accounting the STOP event
because an sql error ocurred in a call to procedure <i>update_radacct_record<br>
<br>
</i>I modified sql.conf and problem is solved.<br>
<br>
This is the original<br>
<br>
<i> accounting_stop_query = "\<br>
CALL update_radacct_record( \<br>
'radius', \<br>
'%S', \<br>
'%{Acct-Delay-Time}', \<br>
'%{Connect-Info}', \<br>
'%{X-RTP-Stat}', \<br>
'%{Acct-Session-Id}', \<br>
'%{Sip-To-Tag}', \<br>
'%{Sip-From-Tag}' \<br>
)"</i><br>
<br>
<br>
and this is the modified<br>
<br>
<i>accounting_stop_query = "\<br>
CALL update_radacct_record( \<br>
'radius', \<br>
'%S', \<br>
'%{Acct-Delay-Time}', \<br>
'', \<br>
'', \<br>
'%{Acct-Session-Id}', \<br>
'%{Sip-To-Tag}', \<br>
'%{Sip-From-Tag}' \<br>
)"</i><br>
<br>
<br>
I hope that this help someone!!<br>
<i><br>
<br>
</i>El 25/07/12 15:31, Stefano Pisani escribió:<br>
</div>
<blockquote cite="mid:500FF54E.3070503@omnianet.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
That seems to be fine.<br>
Are you sure that the call duration are more than OK-BYE time?<br>
<br>
s<br>
<br>
<div class="moz-cite-prefix">Il 25/07/2012 14:02, Francisco Franco
ha scritto:<br>
</div>
<blockquote cite="mid:500FE05A.1090301@recargaexpress.com"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">I am using this options<br>
<br>
<i># ----- acc params -----<br>
<br>
modparam("acc", "early_media", 0)<br>
modparam("acc", "report_ack", 0)<br>
modparam("acc", "report_cancels", 0)<br>
<br>
modparam("acc", "detect_direction", 0)<br>
<br>
modparam("acc", "failed_transaction_flag", 3)<br>
modparam("acc", "log_level", 1)<br>
modparam("acc", "log_flag", 1)<br>
modparam("acc", "log_missed_flag", 2)<br>
<br>
modparam("acc", "db_flag", 1)<br>
modparam("acc", "db_missed_flag", 2)<br>
modparam("acc", "db_url",
"mysql://opensips:*******@localhost/opensips")<br>
modparam("acc", "aaa_url",
"radius:/etc/opensips/radius/client.conf")<br>
modparam("acc", "aaa_flag", 1)<br>
modparam("acc", "aaa_missed_flag", 2)<br>
modparam("acc", "aaa_extra", "User-Name=$Au; \<br>
Calling-Station-Id=$from; \<br>
Called-Station-Id=$to; \<br>
Sip-Translated-Request-URI=$ru; \<br>
Sip-RPid=$avp(s:rpid); \<br>
Source-IP=$avp(s:source_ip); \<br>
Source-Port=$avp(s:source_port); \<br>
SIP-Proxy-IP=$avp(s:sip_proxy_ip); \<br>
Canonical-URI=$avp(s:can_uri); \<br>
Billing-Party=$avp(s:billing_party); \<br>
Divert-Reason=$avp(s:divert_reason); \<br>
User-Agent=$hdr(user-agent); \<br>
Contact=$hdr(contact); \<br>
Event=$hdr(event); \<br>
ENUM-TLD=$avp(s:enum_tld)")</i>
<pre class="moz-signature" cols="72">___________________________________________________________________________
Francisco Franco Gallego
Analista Programador
Grupo IdeaSoluciones.com
Calle Jerónimo Santa Fe, 80 1º
30800 Lorca (Murcia) España
Tlf: +34 968 970 037</pre>
El 24/07/12 20:53, Stefano Pisani escribió:<br>
</div>
<blockquote cite="mid:500EEF34.6000109@omnianet.it" type="cite">Try
using this option <br>
<br>
modparam("acc", "early_media", 0) <br>
<br>
regards, <br>
s <br>
<br>
Il 24/07/2012 19:55, Francisco Franco ha scritto: <br>
<blockquote type="cite">Hi, <br>
<br>
I have opensips 1.6 runing with mediaproxy and have a
problem with call duration accounting. <br>
<br>
The session duration that is stored in database is total
time from call start ringing, but for billing correctly,
time should be start when callee pick up. <br>
<br>
How can i solve it? <br>
<br>
regards. <br>
<br>
<br>
_______________________________________________ <br>
Users mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________ <br>
Users mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>