Advertisement
Guest User

features.conf

a guest
Sep 24th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.45 KB | None | 0 0
  1. [globals]
  2. DYNAMIC_FEATURES=>automon#autotransfer1#autotransfer2#autotransfer3
  3. TOUCH_MONITOR_FORMAT=>mp3
  4.  
  5. [general]
  6. parkext => 700 ; What extension to dial to park
  7. parkpos => 701-720 ; What extensions to park calls on. (defafult parking lot)
  8. ; These needs to be numeric, as Asterisk starts from the start position
  9. ; and increments with one for the next parked call.
  10. context => parkedcalls ; Which context parked calls are in (default parking lot)
  11. ;parkinghints = no ; Add hints priorities automatically for parking slots (default is no).
  12. ;parkingtime => 45 ; Number of seconds a call can be parked for
  13. ; (default is 45 seconds)
  14.  
  15. ;comebacktoorigin = yes ; Setting this option configures the behavior of call parking when the
  16. ; parked call times out (See the parkingtime option). The default value is 'yes'.
  17. ;
  18. ; 'yes' - When the parked call times out, attempt to send the call back to the peer
  19. ; that parked this call. This is done by saving off the name of the channel
  20. ; that parked the call.
  21. ;
  22. ; 'no' - This option is useful for performing custom dialplan functionality prior to
  23. ; sending the call back to the extension that initially parked the call, or to
  24. ; an entirely different destination.
  25. ;
  26. ; When the parked call times out, send it back to the dialplan. The location
  27. ; will be the 'parkedcallstimeout' context. The extension will be built from
  28. ; the saved channel name that parked the call. For example, if a SIP peer named
  29. ; '0004F2040001' parked this call, the extension will be 'SIP_0004F2040001'.
  30. ; (Note that an underscore is used here because the '/' character has a special
  31. ; meaning in extension names for CallerID matching.) If this extension does not
  32. ; exist, the call will be sent to the 's' extension, instead. Finally, if the 's'
  33. ; extension of 'parkedcallstimeout' does not exist, the call will fall back to the
  34. ; 's' extension of the 'default' context.
  35. ;
  36. ; Additionally, in this example an extension of 'SIP_0004F2040001' will be
  37. ; created in the 'park-dial' context. This extension will be set up to do a
  38. ; Dial() to 'SIP/0004F2040001'.
  39. ;
  40.  
  41. ;courtesytone = beep ; Sound file to play to the parked caller
  42. ; when someone dials a parked call
  43. ; or the Touch Monitor is activated/deactivated.
  44. ;parkedplay = caller ; Who to play the courtesy tone to when picking up a parked call
  45. ; one of: parked, caller, both (default is caller)
  46. ;parkedcalltransfers = caller ; Enables or disables DTMF based transfers when picking up a parked call.
  47. ; one of: callee, caller, both, no (default is no)
  48. ;parkedcallreparking = caller ; Enables or disables DTMF based parking when picking up a parked call.
  49. ; one of: callee, caller, both, no (default is no)
  50. ;parkedcallhangup = caller ; Enables or disables DTMF based hangups when picking up a parked call.
  51. ; one of: callee, caller, both, no (default is no)
  52. ;parkedcallrecording = caller ; Enables or disables DTMF based one-touch recording when picking up a parked call.
  53. ; one of: callee, caller, both, no (default is no)
  54. ;parkeddynamic = yes ; Enables dynamically created parkinglots. (default is no)
  55. ;adsipark = yes ; if you want ADSI parking announcements
  56. ;findslot => next ; Continue to the 'next' free parking space.
  57. ; Defaults to 'first' available
  58. ;parkedmusicclass=default ; This is the MOH class to use for the parked channel
  59. ; as long as the class is not set on the channel directly
  60. ; using Set(CHANNEL(musicclass)=whatever) in the dialplan
  61.  
  62. ;transferdigittimeout => 3 ; Number of seconds to wait between digits when transferring a call
  63. ; (default is 3 seconds)
  64. ;xfersound = beep ; to indicate an attended transfer is complete
  65. ;xferfailsound = beeperr ; to indicate a failed transfer
  66. ;pickupexten = *8 ; Configure the pickup extension. (default is *8)
  67. ;pickupsound = beep ; to indicate a successful pickup (default: no sound)
  68. ;pickupfailsound = beeperr ; to indicate that the pickup failed (default: no sound)
  69. ;featuredigittimeout = 1000 ; Max time (ms) between digits for
  70. ; feature activation (default is 1000 ms)
  71. ;atxfernoanswertimeout = 15 ; Timeout for answer on attended transfer default is 15 seconds.
  72. ;atxferdropcall = no ; If someone does an attended transfer, then hangs up before the transferred
  73. ; caller is connected, then by default, the system will try to call back the
  74. ; person that did the transfer. If this is set to "yes", the callback will
  75. ; not be attempted and the transfer will just fail.
  76. ;atxferloopdelay = 10 ; Number of seconds to sleep between retries (if atxferdropcall = no)
  77. ;atxfercallbackretries = 2 ; Number of times to attempt to send the call back to the transferer.
  78. ; By default, this is 2.
  79.  
  80. ;
  81. ;*** Define another parking lot
  82. ;
  83. ; You can set parkinglot with the CHANNEL dialplan function
  84. ; or by setting 'parkinglot' directly in the channel configuration file.
  85. ;
  86. ;[parkinglot_edvina]
  87. ;context => edvinapark
  88. ;parkext => 799
  89. ;parkpos => 800-850
  90. ;findslot => next
  91.  
  92. ; Note that the DTMF features listed below only work when two channels have answered and are bridged together.
  93. ; They can not be used while the remote party is ringing or in progress. If you require this feature you can use
  94. ; chan_local in combination with Answer to accomplish it.
  95.  
  96.  
  97. [featuremap]
  98. blindxfer => ## ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
  99. ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call!
  100. automon => *1 ; One Touch Record a.k.a. Touch Monitor -- Make sure to set the W and/or w option in the Dial() or Queue() app call!
  101. ;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
  102. parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call!
  103. ;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!
  104.  
  105. [applicationmap]
  106. ; Note that the DYNAMIC_FEATURES channel variable must be set to use the features
  107. ; defined here. The value of DYNAMIC_FEATURES should be the names of the features
  108. ; to allow the channel to use separated by '#'. For example:
  109. ;
  110. ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
  111. ;
  112. ; (Note: The two leading underscores allow these feature settings to be set on
  113. ; on the outbound channels, as well. Otherwise, only the original channel
  114. ; will have access to these features.)
  115. ;
  116. ; The syntax for declaring a dynamic feature is any of the following:
  117. ;
  118. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>[,MOH_Class]]
  119. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,"<AppArguments>"[,MOH_Class]]
  120. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>([<AppArguments>])[,MOH_Class]
  121.  
  122. ;
  123. ; FeatureName -> This is the name of the feature used in when setting the
  124. ; DYNAMIC_FEATURES variable to enable usage of this feature.
  125. ; DTMF_sequence -> This is the key sequence used to activate this feature.
  126. ; ActivateOn -> This is the channel of the call that the application will be executed
  127. ; on. Valid values are "self" and "peer". "self" means run the
  128. ; application on the same channel that activated the feature. "peer"
  129. ; means run the application on the opposite channel from the one that
  130. ; has activated the feature.
  131. ; ActivatedBy -> This is which channel is allowed to activate this feature. Valid
  132. ; values are "caller", "callee", and "both". "both" is the default.
  133. ; The "caller" is the channel that executed the Dial application, while
  134. ; the "callee" is the channel called by the Dial application.
  135. ; Application -> This is the application to execute.
  136. ; AppArguments -> These are the arguments to be passed into the application. If you need
  137. ; commas in your arguments, you should use either the second or third
  138. ; syntax, above.
  139. ; MOH_Class -> This is the music on hold class to play while the idle
  140. ; channel waits for the feature to complete. If left blank,
  141. ; no music will be played.
  142. ;
  143.  
  144. ;
  145. ; IMPORTANT NOTE: The applicationmap is not intended to be used for all Asterisk
  146. ; applications. When applications are used in extensions.conf, they are executed
  147. ; by the PBX core. In this case, these applications are executed outside of the
  148. ; PBX core, so it does *not* make sense to use any application which has any
  149. ; concept of dialplan flow. Examples of this would be things like Macro, Goto,
  150. ; Background, WaitExten, and many more.
  151. ;
  152. ; Enabling these features means that the PBX needs to stay in the media flow and
  153. ; media will not be re-directed if DTMF is sent in the media stream.
  154. ;
  155. ; Example Usage:
  156. ;
  157. ;testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play
  158. ; ;tt-monkeys to the opposite channel
  159. ;
  160. ; Set arbitrary channel variables, based upon CALLERID number (Note that the application
  161. ; argument contains commas)
  162. ;retrieveinfo => #8,peer,Set(ARRAY(CDR(mark),CDR(name))=${ODBC_FOO(${CALLERID(num)})})
  163. ;
  164. ;pauseMonitor => #1,self/callee,Pausemonitor ;Allow the callee to pause monitoring
  165. ; ;on their channel
  166. ;unpauseMonitor => #3,self/callee,UnPauseMonitor ;Allow the callee to unpause monitoring
  167. ; ;on their channel
  168.  
  169. ; Dynamic Feature Groups:
  170. ; Dynamic feature groups are groupings of features defined in [applicationmap]
  171. ; that can have their own custom key mappings. To give a channel access to a dynamic
  172. ; feature group, add the group name to the value of the DYNAMIC_FEATURES variable.
  173. ;
  174. ; example:
  175. ; [myGroupName] ; defines the group named myGroupName
  176. ; testfeature => #9 ; associates testfeature with the group and the keycode '#9'.
  177. ; pauseMonitor => ; associates pauseMonitor with the group and uses the keycode specified
  178. ; ; in the [applicationmap].
  179. autotransfer1 => #1,peer,Transfer,221
  180. autotransfer2 => #2,peer,Transfer,222
  181. autotransfer3 => #3,peer,Transfer,223
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement