[asterisk-bugs] [JIRA] (ASTERISK-29417) Hangup Handlers reporting incorrect CDR(duration) and CDR(billsec) when added from a Queue Gosub

Sean Bright (JIRA) noreply at issues.asterisk.org
Wed May 12 15:02:17 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-29417:
-----------------------------------

    Description: 
After attaching a Hangup Handler via Application Queue's "gosub" option (either in the dialplan or queues.conf) the subroutine incorrectly reports the CDR(duration) of the amount of time the member is dialed and a CDR(billsec) of zero, even if the call is answered, instead of the call duration and billsec.  The channel reports the correct Elapsed Time (core show channel xxx).

I verified the handler is attached to the correct channel.

Using PJSIP, no local channels.

{noformat}
[agent]
exten => NoOp( ${CDR(duration)} ${CDR(billsec)} )
{noformat}

Would result in duration being the time the member was dialed before answering and billsec is always zero.

  was:
After attaching a Hangup Handler via Application Queue's "gosub" option (either in the dialplan or queues.conf) the subroutine incorrectly reports the CDR(duration) of the amount of time the member is dialed and a CDR(billsec) of zero, even if the call is answered, instead of the call duration and billsec.  The channel reports the correct Elapsed Time (core show channel xxx).

I verified the handler is attached to the correct channel.

Using PJSIP, no local channels.

[agent]
exten => NoOp( ${CDR(duration)} ${CDR(billsec)} )

Would result in duration being the time the member was dialed before answering and billsec is always zero.


> Hangup Handlers reporting incorrect CDR(duration) and CDR(billsec) when added from a Queue Gosub
> ------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-29417
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29417
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 18.3.0, 18.4.0
>         Environment: Amazon Linux 2 on AWS
>            Reporter: Bill Kervaski
>            Assignee: Bill Kervaski
>
> After attaching a Hangup Handler via Application Queue's "gosub" option (either in the dialplan or queues.conf) the subroutine incorrectly reports the CDR(duration) of the amount of time the member is dialed and a CDR(billsec) of zero, even if the call is answered, instead of the call duration and billsec.  The channel reports the correct Elapsed Time (core show channel xxx).
> I verified the handler is attached to the correct channel.
> Using PJSIP, no local channels.
> {noformat}
> [agent]
> exten => NoOp( ${CDR(duration)} ${CDR(billsec)} )
> {noformat}
> Would result in duration being the time the member was dialed before answering and billsec is always zero.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list