Summary: | ASTERISK-24922: ARI: Add the ability to intercept hold and raise an event | ||
Reporter: | Matt Jordan (mjordan) | Labels: | |
Date Opened: | 2015-03-27 20:44:04 | Date Closed: | 2015-04-07 10:23:41 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_ari_channels |
Versions: | 13.6.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | For some applications - such as SLA - a phone pressing hold should not behave in the fashion that the Asterisk core would like it to. Instead, the hold action has some application specific behaviour associated with it - such as disconnecting the channel that initiated the hold; only playing MoH to channels in the bridge if the channels are of a particular type, etc.
One way of accomplishing this is to mimic the {{TALK_DETECT}} function - that is, use a framehook. The framehook can intercept the hold frame, and instead of passing it on to the core, it can raise an event. The patch attached to this issue accomplished that as a new dialplan function, {{HOLD_INTERCEPT}}. | ||
Comments: |