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

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Jan 24 09:05:25 CST 2020


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

Sean Bright updated ASTERISK-20676:
-----------------------------------

    Description: 
HANGUPCAUSE_KEYS() returns the correct value after a Dial().
But in the other cases, it returns nothing:

In my Hangup Handler:

{noformat}
same => n,Set(HANGUPCAUSE_STRING=${HANGUPCAUSE_KEYS()})
{noformat}

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.

  was:
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.


> [patch] ${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, 13.18.4
>            Reporter: Mathieu Decaffmeyer
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: patch
>         Attachments: channel.diff
>
>
> HANGUPCAUSE_KEYS() returns the correct value after a Dial().
> But in the other cases, it returns nothing:
> In my Hangup Handler:
> {noformat}
> same => n,Set(HANGUPCAUSE_STRING=${HANGUPCAUSE_KEYS()})
> {noformat}
> 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 was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list