[asterisk-bugs] [JIRA] (ASTERISK-24620) AGI GET VARIABLE ANSWEREDTIME gives ZERO on callback bridge using app
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Mon Dec 15 17:49:28 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=224020#comment-224020 ]
Rusty Newton commented on ASTERISK-24620:
-----------------------------------------
Thanks for the additional debug!
Your first debug log doesn't contain enough information about the channels involved to identify the issue, but I believe I see the issue in the new debug log. I haven't used this variable before, but it does look like a bug to me.
The channel in question gets answered.
{noformat}
-- SIP/SIP_Proivder_A-00000006 answered
[Dec 16 00:58:24] DEBUG[15121][C-00000003]: pbx.c:4921 pbx_extension_helper: Launching 'Answer'
{noformat}
Then you read the variable:
{noformat}
<SIP/SIP_Proivder_A-00000006>AGI Rx << GET VARIABLE ANSWEREDTIME
[Dec 16 00:58:25] DEBUG[15121][C-00000003]: pbx.c:3720 ast_str_retrieve_variable: Result of 'ANSWEREDTIME' is NULL
{noformat}
Which is NULL and seems inappropriate considering the documentation from https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Dial:
{noformat}
ANSWEREDTIME - This is the amount of time for actual call.
{noformat}
And it is safe to assume that means since the call was answered. I'm going to go ahead and open the issue up since this looks buggy. I'm not sure what other debug will be needed, so this may be good for now.
> AGI GET VARIABLE ANSWEREDTIME gives ZERO on callback bridge using app
> ---------------------------------------------------------------------
>
> Key: ASTERISK-24620
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24620
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_dial
> Affects Versions: 13.0.2
> Environment: CentOS 6.5 64bit
> Reporter: Sid Mason
> Assignee: Rusty Newton
> Attachments: 2014-12-16 - full_debug.txt, debug.txt
>
>
> Below is the log of Asterisk Console during Callback request by 6012XXXXXXX
> a) when call SIP/sipprovider/6012XXXXXXX is connected
> b) Asterisk is dialing another sip channel SIP/ims_peer/60327XXXXXX
> c) call duriation on SIP/ims_peer/60327XXXXXX is 00:00:12
> d) GET VARIABLE ANSWEREDTIME report Wrong : 0
> e) GET VARIABLE DIALEDTIME report Wrong : 28
> [Edit by Rusty - Remove inline debug - logs don't go in the description field. In the future, please use attachments for logs.]
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list