[asterisk-bugs] [JIRA] (ASTERISK-26322) hangup handlers not working from lua

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Sep 1 07:44:01 CDT 2016


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

Rusty Newton edited comment on ASTERISK-26322 at 9/1/16 7:42 AM:
-----------------------------------------------------------------

As far as I know, "hangup_handler_push" is *not* a channel variable.

"3)" should be the correct and additionally see the Dialplan Functions section of: https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=16548029

Also, here is the function documentation for CHANNEL: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL

Why are you trying to call "hangup_handler_push" as a channel variable?


was (Author: rnewton):
As far as I know, "hangup_handler_push" is *not* a channel variable.

"3)" should be the correct form to use.

Why are you trying to call "hangup_handler_push" as a channel variable?

> hangup handlers not working from lua
> ------------------------------------
>
>                 Key: ASTERISK-26322
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26322
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/pbx_lua
>    Affects Versions: 13.1.0
>         Environment: ubuntu 16.04
>            Reporter: Rajesh Kumar Sahoo
>            Assignee: Rajesh Kumar Sahoo
>            Severity: Minor
>
> i want to attach a hangup handler to newly created channels in Dial application.But below methods are not working. 
> 1) channel.hangup_handler_push='hangup-handlers,s,1' 
> 2) channel['hangup_handler_push']='hangup-handlers,s,1'
> But using application Set it is working.
> 3) app.Set('CHANNEL(hangup_handler_push)=hangup-handlers,s,1')
> For More details,
> http://stackoverflow.com/questions/39207289/asterisk-hangup-handler-using-lua/39212653



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



More information about the asterisk-bugs mailing list