features.conf.sample 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. ;
  2. ; Sample Call Features (parking, transfer, etc) configuration
  3. ;
  4. [general]
  5. parkext => 700 ; What extension to dial to park (all parking lots)
  6. parkpos => 701-720 ; What extensions to park calls on. (defafult parking lot)
  7. ; These needs to be numeric, as Asterisk starts from the start position
  8. ; and increments with one for the next parked call.
  9. context => parkedcalls ; Which context parked calls are in (default parking lot)
  10. ;parkinghints = no ; Add hints priorities automatically for parking slots (default is no).
  11. ;parkingtime => 45 ; Number of seconds a call can be parked for
  12. ; (default is 45 seconds)
  13. ;comebacktoorigin = yes ; Whether to return to the original calling extension upon parking
  14. ; timeout or to send the call to context 'parkedcallstimeout' at
  15. ; extension 's', priority '1' (default is yes).
  16. ;courtesytone = beep ; Sound file to play to the parked caller
  17. ; when someone dials a parked call
  18. ; or the Touch Monitor is activated/deactivated.
  19. ;parkedplay = caller ; Who to play the courtesy tone to when picking up a parked call
  20. ; one of: parked, caller, both (default is caller)
  21. ;parkedcalltransfers = caller ; Enables or disables DTMF based transfers when picking up a parked call.
  22. ; one of: callee, caller, both, no (default is no)
  23. ;parkedcallreparking = caller ; Enables or disables DTMF based parking when picking up a parked call.
  24. ; one of: callee, caller, both, no (default is no)
  25. ;parkedcallhangup = caller ; Enables or disables DTMF based hangups when picking up a parked call.
  26. ; one of: callee, caller, both, no (default is no)
  27. ;parkedcallrecording = caller ; Enables or disables DTMF based one-touch recording when picking up a parked call.
  28. ; one of: callee, caller, both, no (default is no)
  29. ;adsipark = yes ; if you want ADSI parking announcements
  30. ;findslot => next ; Continue to the 'next' free parking space.
  31. ; Defaults to 'first' available
  32. ;parkedmusicclass=default ; This is the MOH class to use for the parked channel
  33. ; as long as the class is not set on the channel directly
  34. ; using Set(CHANNEL(musicclass)=whatever) in the dialplan
  35. ;transferdigittimeout => 3 ; Number of seconds to wait between digits when transferring a call
  36. ; (default is 3 seconds)
  37. ;xfersound = beep ; to indicate an attended transfer is complete
  38. ;xferfailsound = beeperr ; to indicate a failed transfer
  39. ;pickupexten = *8 ; Configure the pickup extension. (default is *8)
  40. ;featuredigittimeout = 1000 ; Max time (ms) between digits for
  41. ; feature activation (default is 1000 ms)
  42. ;atxfernoanswertimeout = 15 ; Timeout for answer on attended transfer default is 15 seconds.
  43. ;atxferdropcall = no ; If someone does an attended transfer, then hangs up before the transferred
  44. ; caller is connected, then by default, the system will try to call back the
  45. ; person that did the transfer. If this is set to "yes", the callback will
  46. ; not be attempted and the transfer will just fail.
  47. ;atxferloopdelay = 10 ; Number of seconds to sleep between retries (if atxferdropcall = no)
  48. ;atxfercallbackretries = 2 ; Number of times to attempt to send the call back to the transferer.
  49. ; By default, this is 2.
  50. ; Note that the DTMF features listed below only work when two channels have answered and are bridged together.
  51. ; They can not be used while the remote party is ringing or in progress. If you require this feature you can use
  52. ; chan_local in combination with Answer to accomplish it.
  53. [featuremap]
  54. ;blindxfer => #1 ; Blind transfer (default is #) -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
  55. ;disconnect => *0 ; Disconnect (default is *) -- Make sure to set the H and/or h option in the Dial() or Queue() app call!
  56. ;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!
  57. ;atxfer => *2 ; Attended transfer -- Make sure to set the T and/or t option in the Dial() or Queue() app call!
  58. ;parkcall => #72 ; Park call (one step parking) -- Make sure to set the K and/or k option in the Dial() app call!
  59. ;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!
  60. [applicationmap]
  61. ; Note that the DYNAMIC_FEATURES channel variable must be set to use the features
  62. ; defined here. The value of DYNAMIC_FEATURES should be the names of the features
  63. ; to allow the channel to use separated by '#'. For example:
  64. ;
  65. ; Set(__DYNAMIC_FEATURES=myfeature1#myfeature2#myfeature3)
  66. ;
  67. ; (Note: The two leading underscores allow these feature settings to be set on
  68. ; on the outbound channels, as well. Otherwise, only the original channel
  69. ; will have access to these features.)
  70. ;
  71. ; The syntax for declaring a dynamic feature is any of the following:
  72. ;
  73. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>[,MOH_Class]]
  74. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,"<AppArguments>"[,MOH_Class]]
  75. ;<FeatureName> => <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>([<AppArguments>])[,MOH_Class]
  76. ;
  77. ; FeatureName -> This is the name of the feature used in when setting the
  78. ; DYNAMIC_FEATURES variable to enable usage of this feature.
  79. ; DTMF_sequence -> This is the key sequence used to activate this feature.
  80. ; ActivateOn -> This is the channel of the call that the application will be executed
  81. ; on. Valid values are "self" and "peer". "self" means run the
  82. ; application on the same channel that activated the feature. "peer"
  83. ; means run the application on the opposite channel from the one that
  84. ; has activated the feature.
  85. ; ActivatedBy -> This is which channel is allowed to activate this feature. Valid
  86. ; values are "caller", "callee", and "both". "both" is the default.
  87. ; The "caller" is the channel that executed the Dial application, while
  88. ; the "callee" is the channel called by the Dial application.
  89. ; Application -> This is the application to execute.
  90. ; AppArguments -> These are the arguments to be passed into the application. If you need
  91. ; commas in your arguments, you should use either the second or third
  92. ; syntax, above.
  93. ; MOH_Class -> This is the music on hold class to play while the idle
  94. ; channel waits for the feature to complete. If left blank,
  95. ; no music will be played.
  96. ;
  97. ;
  98. ; IMPORTANT NOTE: The applicationmap is not intended to be used for all Asterisk
  99. ; applications. When applications are used in extensions.conf, they are executed
  100. ; by the PBX core. In this case, these applications are executed outside of the
  101. ; PBX core, so it does *not* make sense to use any application which has any
  102. ; concept of dialplan flow. Examples of this would be things like Macro, Goto,
  103. ; Background, WaitExten, and many more.
  104. ;
  105. ; Enabling these features means that the PBX needs to stay in the media flow and
  106. ; media will not be re-directed if DTMF is sent in the media stream.
  107. ;
  108. ; Example Usage:
  109. ;
  110. ;testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play
  111. ; ;tt-monkeys to the opposite channel
  112. ;
  113. ; Set arbitrary channel variables, based upon CALLERID number (Note that the application
  114. ; argument contains commas)
  115. ;retrieveinfo => #8,peer,Set(ARRAY(CDR(mark),CDR(name))=${ODBC_FOO(${CALLERID(num)})})
  116. ;
  117. ;pauseMonitor => #1,self/callee,Pausemonitor ;Allow the callee to pause monitoring
  118. ; ;on their channel
  119. ;unpauseMonitor => #3,self/callee,UnPauseMonitor ;Allow the callee to unpause monitoring
  120. ; ;on their channel
  121. ;
  122. ;*** Define another parking lot
  123. ;
  124. ; You can set parkinglot with the CHANNEL dialplan function
  125. ; or by setting 'parkinglot' directly in the channel configuration file.
  126. ;
  127. ;[parkinglot_edvina]
  128. ;context => edvinapark
  129. ;parkpos => 800-850
  130. ;findslot => next
  131. ; GROUPS
  132. ; Groups are groupings of features defined in [applicationmap]
  133. ; that can have their own key mappings.
  134. ;
  135. ; example:
  136. ; [myGroupName] ; defines the group named myGroupName
  137. ; testfeature => #9 ; associates testfeature with the group and the keycode #9
  138. ; pauseMonitor ; associates pauseMonitor with the group and the keycode