[OpenSIPS-Users] call duration problem
Francisco Franco
francisco.franco at recargaexpress.com
Thu Jul 26 09:32:17 CEST 2012
Thank for help Stefano,
I think that mediaproxy is the problem.
This is debug log:
/Jul 25 16:25:59 server2 media-relay[30180]: debug: created new session
Jul 25 16:25:59 server2 media-relay[30180]: debug: Got traffic
information for stream:
Jul 25 16:26:03 server2 media-relay[30180]: debug: Got initial answer
from callee for stream:
Jul 25 16:26:03 server2 media-relay[30180]: debug: Got traffic
information for stream:
Jul 25 16:26:08 server2 /usr/sbin/opensips[18904]: ACC: transaction
answered: timestamp=1343226368;method=INVITE;
Jul 25 16:26:13 server2 media-dispatcher[25512]: debug: Got statistics:
{'start_time': 0, 'end_time': 10, 'duration': 10}/
This call has 5 seconds duration in carrier CDR.
You can see that call is answered at */Jul 25 16:26:08/* and ended at
*/Jul 25 16:26:13. /*Just 5 seconds. But media-dispatcher statistics
show 10 seconds.
If we go back 10 seconds from */16:26:13/*, we can see this debug log:
/Jul 25 *16:26:03* server2 media-relay[30180]: debug: Got initial answer
from callee for stream: /
This log is when call start ringing at destination.
I think that mediaproxy have any option for adjust call duration but i
not know
regards
El 25/07/12 15:31, Stefano Pisani escribió:
> That seems to be fine.
> Are you sure that the call duration are more than OK-BYE time?
>
> s
>
> Il 25/07/2012 14:02, Francisco Franco ha scritto:
>> I am using this options
>>
>> /# ----- acc params -----
>>
>> modparam("acc", "early_media", 0)
>> modparam("acc", "report_ack", 0)
>> modparam("acc", "report_cancels", 0)
>>
>> modparam("acc", "detect_direction", 0)
>>
>> modparam("acc", "failed_transaction_flag", 3)
>> modparam("acc", "log_level", 1)
>> modparam("acc", "log_flag", 1)
>> modparam("acc", "log_missed_flag", 2)
>>
>> modparam("acc", "db_flag", 1)
>> modparam("acc", "db_missed_flag", 2)
>> modparam("acc", "db_url", "mysql://opensips:*******@localhost/opensips")
>> modparam("acc", "aaa_url", "radius:/etc/opensips/radius/client.conf")
>> modparam("acc", "aaa_flag", 1)
>> modparam("acc", "aaa_missed_flag", 2)
>> modparam("acc", "aaa_extra", "User-Name=$Au; \
>> Calling-Station-Id=$from; \
>> Called-Station-Id=$to; \
>> Sip-Translated-Request-URI=$ru; \
>> Sip-RPid=$avp(s:rpid); \
>> Source-IP=$avp(s:source_ip); \
>> Source-Port=$avp(s:source_port); \
>> SIP-Proxy-IP=$avp(s:sip_proxy_ip); \
>> Canonical-URI=$avp(s:can_uri); \
>> Billing-Party=$avp(s:billing_party); \
>> Divert-Reason=$avp(s:divert_reason); \
>> User-Agent=$hdr(user-agent); \
>> Contact=$hdr(contact); \
>> Event=$hdr(event); \
>> ENUM-TLD=$avp(s:enum_tld)")/
>> ___________________________________________________________________________
>> 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
>> El 24/07/12 20:53, Stefano Pisani escribió:
>>> Try using this option
>>>
>>> modparam("acc", "early_media", 0)
>>>
>>> regards,
>>> s
>>>
>>> Il 24/07/2012 19:55, Francisco Franco ha scritto:
>>>> Hi,
>>>>
>>>> I have opensips 1.6 runing with mediaproxy and have a problem with
>>>> call duration accounting.
>>>>
>>>> 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.
>>>>
>>>> How can i solve it?
>>>>
>>>> regards.
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120726/f3319886/attachment.htm>
More information about the Users
mailing list