diff options
Diffstat (limited to 'configs/features.conf.sample')
-rw-r--r-- | configs/features.conf.sample | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/configs/features.conf.sample b/configs/features.conf.sample index 1bfa45820..786722386 100644 --- a/configs/features.conf.sample +++ b/configs/features.conf.sample @@ -42,9 +42,44 @@ context => parkedcalls ; Which context parked calls are in ; Note that the DYNAMIC_FEATURES channel variable must be set to use the features ; defined here. The value of DYNAMIC_FEATURES should be the names of the features ; to allow the channel to use separated by '#'. For example: +; ; Set(DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) ; -;testfeature => #9,callee,Playback,tt-monkeys ;Play tt-monkeys to - ;callee if #9 was pressed -;pauseMonitor => #1,caller,Pausemonitor ;Pause monitoring on channel -;unpauseMonitor => #3,caller,UnPauseMonitor ;Unpause monitoring on channel +; +; The syntax for declaring a dynaic feature is the following: +; +;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>] +; +; FeatureName -> This is the name of the feature used in when setting the +; DYNAMIC_FEATURES variable to enable usage of this feature. +; DTMF_sequence -> This is the key sequence used to activate this feature. +; ActivateOn -> This is the channel of the call that the application will be executed +; on. Valid values are "self" and "peer". "self" means run the +; application on the same channel that activated the feature. "peer" +; means run the application on the opposite channel from the one that +; has activated the feature. +; ActivatedBy -> This is which channel is allowed to activated this feature. Valid +; values are "caller", "callee", and "both". "both" is the default. +; The "caller" is the channel that executed the Dial application, while +; the "callee" is the channel called by the Dial application. +; Application -> This is the application to execute. +; AppArguments -> These are the arguments to be passed into the application. +; +; +; IMPORTANT NOTE: The applicationmap is not intended to be used for all Asterisk +; applications. When applications are used in extensions.conf, they are executed +; by the PBX core. In this case, these applications are executed outside of the +; PBX core, so it does *not* make sense to use any application which has any +; concept of dialplan flow. Examples of this would be things like Macro, Goto, +; Background, WaitExten, and many more. +; +; +; Example Usage: +; +;testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play +; ;tt-monkeys to the opposite channel +; +;pauseMonitor => #1,self/callee,Pausemonitor ;Allow the callee to pause monitoring +; ;on their channel +;unpauseMonitor => #3,self/callee,UnPauseMonitor ;Allow the callee to unpause monitoring +; ;on their channel |