GetVariable issue

Aug 14, 2014 at 9:10 PM

I need to know the value of "DIALSTATUS" when a call is ended.
So I call "GetVariable("DIALSTATUS") and it works for these cases :
When the callee reject the call, the DIALSTATUS = BUSY as expected.
When the callee accept the call and he is the first to hangup, DIALSTATUS = ANSWERED as expected.
But it fails when caller is the first to hangup, GetVariable("DIALSTATUS") return null value.
(channel.LastReply.ResultCode == -1)
But when I check the Asterisk trace in the CLI, Asterisk return the "ANSWER" value as expected !
Here what I see in the CLI :
<SIP/Android-00000021>AGI Tx >> 200 result=1 (ANSWER)
Why GetVariable can't get the returned value in this case ?
Aug 15, 2014 at 8:29 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.