[asterisk-bugs] [JIRA] Created: (ASTERISK-20354) Problem with ResetCDR(e) - Duration time value is wrong

Krzysztof Chmielewski (JIRA) noreply at issues.asterisk.org
Mon Sep 3 11:16:07 CDT 2012


Problem with ResetCDR(e) - Duration time value is wrong
-------------------------------------------------------

                 Key: ASTERISK-20354
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20354
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Applications/app_cdr
    Affects Versions: 1.8.15.1, 1.8.13.1
            Reporter: Krzysztof Chmielewski



Scenario:
test001 A is calling to test002, test002 does not answer. After 10 seconds call is forwarded to test003. Test003 answers the call after 5 seconds. Test001 and test003 are talking for 3 sec, and test003 ends the call.

Dial Plan:
exten => 100,1,Dial(SIP/test002,10)
exten => 100,n,ForkCDR(r)
exten => 100,n,ForkCDR(eA)
exten => 100,n,Dial(SIP/test003)

In asterisk 1.8.13.1
CDR between test001 and test002, has status No Answer and billsec = 0, and this is ok. But duration time for this CDR is set to duration of test001 <-> test003 after call was forwarded by test002. In My opinion, duration time for this call should be set to 10 seconds.

What I'm trying to do here is create one main CDR for call from test001 (duration 10 + 8 = 18 and billsec = 3). This is why I'm doing first ForkCDR(r). Next I would like to have CDR from actual call test001 -> test002 which status  No Answer and duration time 10, billsec 0. To do this I use second ForkCDR(eA). This CDR should end after we stop calling to test002. Finally I need CDR for forwarded call test001 and test003 which duration time = 8 and bilsec = 3.

instead of what i wrote above  second CDR (between test001 and test002) has the same duration like 3rd CDR, duration time = 8 seconds.


In asterisk 1.8.15.1 second CDR in this scenario has duration set to 0.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list