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

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


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

Rusty Newton updated ASTERISK-26322:
------------------------------------

    Assignee: Rajesh Kumar Sahoo
      Status: Waiting for Feedback  (was: Triage)

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