[asterisk-bugs] [JIRA] (ASTERISK-20676) ${HANGUPCAUSE_KEYS()} returns nothing if I don't Dial()

Mathieu Decaffmeyer (JIRA) noreply at issues.asterisk.org
Mon Nov 12 09:53:21 CST 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199557#comment-199557 ] 

Mathieu Decaffmeyer edited comment on ASTERISK-20676 at 11/12/12 9:52 AM:
--------------------------------------------------------------------------

I simply execute this in the begenning of my dialplan:
same => n,Set(CHANNEL(hangup_handler_push)=subHangUp,s,1)

[subHangUp]
exten => s,1,Verbose(1, Hangup handler)
	same => n,Verbose(1, Asterisk cause of hangup: ${HANGUPCAUSE}) ; prints 0
	same => n,Set(HANGUPCAUSE_STRING=${HANGUPCAUSE_KEYS()})
	same => n,Verbose(1, Channels with hangup cause information: ${HANGUPCAUSE_STRING})
	[...]

I talked about this problem on IRC freenode #asterisk, and other users are experiencing the same thing. But I don't even know if this is normal or if it is an error and that HANGUPCAUSE_KEYS() should indeed return something even if I don't Dial().
                
      was (Author: matthewbe):
    I simply execute this in the begenning of my dialplan:
same => n,Set(CHANNEL(hangup_handler_push)=subHangUp,s,1)

[subHangUp]
exten => s,1,Verbose(1, Hangup handler)
	same => n,Verbose(1, Asterisk cause of hangup: ${HANGUPCAUSE}) ; prints 0
	same => n,Set(HANGUPCAUSE_STRING=${HANGUPCAUSE_KEYS()})
	same => n,Verbose(1, Channels with hangup cause information: ${HANGUPCAUSE_STRING})
	[...]

I talked about this problem on IRC freenode #asterisk, and other users are experiencing the same thing. But I don't even know if this is an error or if HANGUPCAUSE_KEYS() should indeed return something even if I don't Dial().
                  
> ${HANGUPCAUSE_KEYS()} returns nothing if I don't Dial()
> -------------------------------------------------------
>
>                 Key: ASTERISK-20676
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20676
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_hangupcause
>    Affects Versions: 11.0.0
>            Reporter: Mathieu Decaffmeyer
>            Assignee: Mathieu Decaffmeyer
>
> HANGUPCAUSE_KEYS() returns the correct value after a Dial().
> But in the other cases, it returns nothing:
> In my Hangup Handler:
> same => n,Set(HANGUPCAUSE_STRING=${HANGUPCAUSE_KEYS()})
> So if I don't transfer the user with Dial(), and the user will disconnect before I transfer him, there is not any hangup cause available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list