features.conf.sample 7.1 KB

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