| 1 |
; |
| 2 |
; Sample Call Features (transfer, mixmonitor, etc) configuration |
| 3 |
; |
| 4 |
|
| 5 |
; Note: From Asterisk 12 - All parking lot configuration is now done in res_parking.conf |
| 6 |
|
| 7 |
[general] |
| 8 |
;transferdigittimeout => 3 ; Number of seconds to wait between digits when transferring a call |
| 9 |
; (default is 3 seconds). If the TRANSFER_EXTEN dialplan variable has been set |
| 10 |
; on the channel of the user that is invoking the transfer feature, then |
| 11 |
; this option is not used as the user is transferred directly to the extension |
| 12 |
; specified by TRANSFER_EXTEN (the transfer context remains the context specified |
| 13 |
; by TRANSFER_CONTEXT, if set, and otherwise the default context). |
| 14 |
;xfersound = beep ; to indicate an attended transfer is complete |
| 15 |
;xferfailsound = beeperr ; to indicate a failed transfer |
| 16 |
;pickupexten = *8 ; Configure the pickup extension. (default is *8) |
| 17 |
;pickupsound = beep ; to indicate a successful pickup (default: no sound) |
| 18 |
;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound) |
| 19 |
;featuredigittimeout = 1000 ; Max time (ms) between digits for |
| 20 |
; feature activation (default is 1000 ms) |
| 21 |
;recordingfailsound = beeperr ; indicates that a one-touch mixmonitor feature failed |
| 22 |
; to be applied to the call. (default: no sound) |
| 23 |
;atxfernoanswertimeout = 15 ; Timeout for answer on attended transfer default is 15 seconds. |
| 24 |
;atxferdropcall = no ; If someone does an attended transfer, then hangs up before the transfer |
| 25 |
; target answers, then by default, the system will try to call back the |
| 26 |
; person that did the transfer. If this is set to "yes", the ringing |
| 27 |
; transfer target is immediately transferred to the transferee. |
| 28 |
;atxferloopdelay = 10 ; Number of seconds to sleep between retries (if atxferdropcall = no) |
| 29 |
;atxfercallbackretries = 2 ; Number of times to attempt to send the call back to the transferer. |
| 30 |
; By default, this is 2. |
| 31 |
;transferdialattempts = 3 ; Number of times that a transferer may attempt to dial an extension before |
| 32 |
; being kicked back to the original call. |
| 33 |
;transferannouncesound = beep ; Sound to play to a transferer to indicate transfer process has begun. If empty, no sound will be played. |
| 34 |
;transferretrysound = beep ; Sound to play when a transferer fails to dial a valid extension. |
| 35 |
;transferinvalidsound = beeperr ; Sound to play when a transferer fails to dial a valid extension and is out of retries. |
| 36 |
;atxferabort = *1 ; cancel the attended transfer |
| 37 |
;atxfercomplete = *2 ; complete the attended transfer, dropping out of the call |
| 38 |
;atxferthreeway = *3 ; complete the attended transfer, but stay in the call. This will turn the call into a multi-party bridge |
| 39 |
;atxferswap = *4 ; swap to the other party. Once an attended transfer has begun, this option may be used multiple times |
| 40 |
|
| 41 |
; Note that the DTMF features listed below only work when two channels have answered and are bridged together. |
| 42 |
; They can not be used while the remote party is ringing or in progress. If you require this feature you can use |
| 43 |
; chan_local in combination with Answer to accomplish it. |
| 44 |
|
| 45 |
[featuremap] |
| 46 |
;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call! |
| 47 |
;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call! |
| 48 |
;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call! |
| 49 |
;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call! |
| 50 |
;automixmon => *3 ; One Touch Record a.k.a. Touch MixMonitor -- Make sure to set the X and/or x option in the Dial() or Queue() app call! |
| 51 |
|
| 52 |
[applicationmap] |
| 53 |
; Note that the DYNAMIC_FEATURES channel variable must be set to use the features |
| 54 |
; defined here. The value of DYNAMIC_FEATURES should be the names of the features |
| 55 |
; to allow the channel to use separated by '#'. For example: |
| 56 |
; |
| 57 |
; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3) |
| 58 |
; |
| 59 |
; (Note: The two leading underscores allow these feature settings to be set |
| 60 |
; on the outbound channels, as well. Otherwise, only the original channel |
| 61 |
; will have access to these features.) |
| 62 |
; |
| 63 |
; The syntax for declaring a dynamic feature is any of the following: |
| 64 |
; |
| 65 |
;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>[,MOH_Class]] |
| 66 |
;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,"<AppArguments>"[,MOH_Class]] |
| 67 |
;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>([<AppArguments>])[,MOH_Class] |
| 68 |
|
| 69 |
; |
| 70 |
; FeatureName -> This is the name of the feature used when setting the |
| 71 |
; DYNAMIC_FEATURES variable to enable usage of this feature. |
| 72 |
; DTMF_sequence -> This is the key sequence used to activate this feature. |
| 73 |
; ActivateOn -> This is the channel of the call that the application will be executed |
| 74 |
; on. Valid values are "self" and "peer". "self" means run the |
| 75 |
; application on the same channel that activated the feature. "peer" |
| 76 |
; means run the application on the opposite channel from the one that |
| 77 |
; has activated the feature. |
| 78 |
; ActivatedBy -> ActivatedBy is no longer honored. The feature is activated by which |
| 79 |
; channel DYNAMIC_FEATURES includes the feature is on. Use a pre-dial |
| 80 |
; handler to set different values for DYNAMIC_FEATURES on the channels. |
| 81 |
; Historic values are: "caller", "callee", and "both". |
| 82 |
; Application -> This is the application to execute. |
| 83 |
; AppArguments -> These are the arguments to be passed into the application. If you need |
| 84 |
; commas in your arguments, you should use either the second or third |
| 85 |
; syntax, above. |
| 86 |
; MOH_Class -> This is the music on hold class to play while the idle |
| 87 |
; channel waits for the feature to complete. If left blank, |
| 88 |
; no music will be played. |
| 89 |
; |
| 90 |
|
| 91 |
; |
| 92 |
; IMPORTANT NOTE: The applicationmap is not intended to be used for all Asterisk |
| 93 |
; applications. When applications are used in extensions.conf, they are executed |
| 94 |
; by the PBX core. In this case, these applications are executed outside of the |
| 95 |
; PBX core, so it does *not* make sense to use any application which has any |
| 96 |
; concept of dialplan flow. Examples of this would be things like Goto, |
| 97 |
; Background, WaitExten, and many more. The exceptions to this are Gosub |
| 98 |
; routines which must complete for the call to continue. |
| 99 |
; |
| 100 |
; Enabling these features means that the PBX needs to stay in the media flow and |
| 101 |
; media will not be re-directed if DTMF is sent in the media stream. |
| 102 |
; |
| 103 |
; Example Usage: |
| 104 |
; |
| 105 |
;testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play |
| 106 |
; ;tt-monkeys to the opposite channel |
| 107 |
; |
| 108 |
; Set arbitrary channel variables, based upon CALLERID number (Note that the application |
| 109 |
; argument contains commas) |
| 110 |
;retrieveinfo => #8,peer,Set(ARRAY(CDR(mark),CDR(name))=${ODBC_FOO(${CALLERID(num)})}) |
| 111 |
|
| 112 |
; Dynamic Feature Groups: |
| 113 |
; Dynamic feature groups are groupings of features defined in [applicationmap] |
| 114 |
; that can have their own custom key mappings. To give a channel access to a dynamic |
| 115 |
; feature group, add the group name to the value of the DYNAMIC_FEATURES variable. |
| 116 |
; |
| 117 |
; example: |
| 118 |
; [myGroupName] ; defines the group named myGroupName |
| 119 |
; testfeature => #9 ; associates testfeature with the group and the keycode '#9'. |
| 120 |
; retrieveinfo => ; associates retrieveinfo with the group and uses the keycode specified |
| 121 |
; ; in the [applicationmap]. |