[Home]

Summary:ASTERISK-28677: CDR billsec is always 0 for transferred calls
Reporter:Maciej Michno (mmichno)Labels:
Date Opened:2020-01-02 08:01:19.000-0600Date Closed:2020-01-23 08:40:23.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:CDR/General Channels/chan_sip/Transfers
Versions:13.29.0 13.30.0 16.6.1 16.7.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Centos 7.7Attachments:( 0) cdr.conf
( 1) Custom.csv
( 2) extensions.conf
( 3) full
( 4) Master.csv
( 5) pg.png
( 6) sip.conf
( 7) users.conf
Description:Hi,

There is a bug in CDR, starting from Asterisk 13.29.0. Billsec is set to 0 for transferred call.

Scenario:
A is calling B.
B is answering A and blindtransferring call to C.

Effect:
Two CDR's entries are created, one for call A to B, and second one for transferred call A to C.
Second entry is created correctly, with correct duration and billsec for A to C call.
Duration for the first call is set correctly, but billsec is always 0, no matter of time spended on first call (A to B).
The same effect is observed in both - database and csv/custom CDR.

Problem does not occur in previous versions of Asterisk, before 13.29.0 (tested on exactly the same configuration).
Comments:By: Asterisk Team (asteriskteam) 2020-01-02 08:01:20.246-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Kevin Harwell (kharwell) 2020-01-02 13:31:13.782-0600

Please attach relevant configuration files, and data used in the CSV scenario. For instance, your _cdr.conf_, _pjsip.conf_ (or _sip.conf_), and dialplan (_extensions.conf_).

Also please attach the CDR output found in the CSV file after running the scenario.

By: Maciej Michno (mmichno) 2020-01-03 04:24:50.724-0600

Configuration files.

By: Maciej Michno (mmichno) 2020-01-03 04:25:28.663-0600

CDR files.

By: Maciej Michno (mmichno) 2020-01-03 04:25:49.036-0600

Log file.

By: Maciej Michno (mmichno) 2020-01-03 04:27:37.776-0600

Hi,
All necessary files (conf, csv and full log) are attached.

By: Kevin Harwell (kharwell) 2020-01-03 12:25:30.897-0600

After some testing this appears to be caused by the following [commit|https://gerrit.asterisk.org/c/asterisk/+/11692] (13 branch):
{noformat}
1496aef51b293078604fa6ed9f2341e671760303
{noformat}
Interestingly, it also appears to only happen when using _chan_sip_. Testing with _chan_pjsip_ did not exhibit the bug.

By: Friendly Automation (friendly-automation) 2020-01-23 08:40:25.110-0600

Change 13670 merged by Joshua Colp:
cdr.c: Set event time on party b when leaving a parking bridge

[https://gerrit.asterisk.org/c/asterisk/+/13670|https://gerrit.asterisk.org/c/asterisk/+/13670]

By: Friendly Automation (friendly-automation) 2020-01-23 08:44:12.166-0600

Change 13671 merged by Friendly Automation:
cdr.c: Set event time on party b when leaving a parking bridge

[https://gerrit.asterisk.org/c/asterisk/+/13671|https://gerrit.asterisk.org/c/asterisk/+/13671]

By: Friendly Automation (friendly-automation) 2020-01-23 08:48:05.399-0600

Change 13684 merged by Joshua Colp:
cdr.c: Set event time on party b when leaving a parking bridge

[https://gerrit.asterisk.org/c/asterisk/+/13684|https://gerrit.asterisk.org/c/asterisk/+/13684]

By: Friendly Automation (friendly-automation) 2020-01-23 08:48:23.277-0600

Change 13683 merged by Joshua Colp:
cdr.c: Set event time on party b when leaving a parking bridge

[https://gerrit.asterisk.org/c/asterisk/+/13683|https://gerrit.asterisk.org/c/asterisk/+/13683]