[asterisk-bugs] [JIRA] (ASTERISK-19319) [patch] Triggers dialplan actions when specific CONTROL_FRAMES are detected on a channel.

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 19 06:15:07 CST 2017


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

Joshua Colp updated ASTERISK-19319:
-----------------------------------

    Affects Version/s: 13.18.4

> [patch] Triggers dialplan actions when specific CONTROL_FRAMES are detected on a channel.
> -----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19319
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19319
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Functions/NewFeature
>    Affects Versions: 10.1.1, 13.18.4
>         Environment: Tested on CentOS 5
>            Reporter: Marco Signorini
>            Severity: Minor
>         Attachments: func_frame_trigger.c
>
>
> A filter can be applied to the trigger to limit frames sensibility.  This filter can either be a white or black list of control frame types.  When no filter type is present, white is used.  If no arguments are provided at all, all frames will trigger the specified gosub call.
> If the specified gosub extension is not present on the dialplan, the function will gosub to the "s-XXXX" extension in the gosub context where XXXX is the type of the control frame.
> It can be set only once on a given channel.
> Examples:
> exten => 1,1,Set(FRAME_TRIGGER(white, CONTROL_HOLD)=ext,context); trigger gosub ext-CONTROL_HOLD at context only for HOLD type control frames
> exten => 1,1,Set(FRAME_TRIGGER(black, CONTROL_HOLD)=ext,context); trigger gosub ext-CONROL_XXXX at context for all control type frames except for HOLD type control frames
> exten => 1,1,Set(FRAME_TRIGGER(CONTROL_HOLD, CONROL_UNHOLD)=context) ; trigger gosub to s-CONTROL_HOLD at context and s-CONROL_UNHOLD context only for HOLD and UNHOLD type control frames
> This feature was originally developed in order to track MOH events in a call center environment but has general interest.



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



More information about the asterisk-bugs mailing list