<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">Thank for help Stefano,<br>
<br>
I think that mediaproxy is the problem.<br>
This is debug log:<br>
<br>
<i>Jul 25 16:25:59 server2 media-relay[30180]: debug: created new
session<br>
Jul 25 16:25:59 server2 media-relay[30180]: debug: Got traffic
information for stream:<br>
Jul 25 16:26:03 server2 media-relay[30180]: debug: Got initial
answer from callee for stream: <br>
Jul 25 16:26:03 server2 media-relay[30180]: debug: Got traffic
information for stream: <br>
Jul 25 16:26:08 server2 /usr/sbin/opensips[18904]: ACC:
transaction answered: timestamp=1343226368;method=INVITE;<br>
Jul 25 16:26:13 server2 media-dispatcher[25512]: debug: Got
statistics: {'start_time': 0, 'end_time': 10, 'duration': 10}</i><br>
<br>
This call has 5 seconds duration in carrier CDR.<br>
<br>
You can see that call is answered at <b><i>Jul 25 16:26:08</i></b>
and ended at <b><i>Jul 25 16:26:13. </i></b>Just 5 seconds. But
media-dispatcher statistics show 10 seconds.<br>
If we go back 10 seconds from <b><i>16:26:13</i></b>, we can see
this debug log:<br>
<i>Jul 25 <b>16:26:03</b> server2 media-relay[30180]: debug: Got
initial answer from callee for stream: </i><br>
<br>
This log is when call start ringing at destination.<br>
<br>
I think that mediaproxy have any option for adjust call duration
but i not know<br>
<br>
regards<br>
<br>
<br>
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>
<br>
</body>
</html>