Summary: | ASTERISK-26322: hangup handlers not working from lua | ||||
Reporter: | Rajesh Kumar Sahoo (rajesh6115) | Labels: | |||
Date Opened: | 2016-08-30 00:32:01 | Date Closed: | 2020-01-14 11:13:27.000-0600 | ||
Priority: | Minor | Regression? | |||
Status: | Closed/Complete | Components: | PBX/pbx_lua | ||
Versions: | 13.1.0 | Frequency of Occurrence | |||
Related Issues: |
| ||||
Environment: | ubuntu 16.04 | Attachments: | |||
Description: | 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 | ||||
Comments: | By: Asterisk Team (asteriskteam) 2016-08-30 00:32:02.041-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Rusty Newton (rnewton) 2016-09-01 07:40:41.934-0500 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? By: Asterisk Team (asteriskteam) 2016-09-15 12:00:00.981-0500 Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1]. [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines |