res_parking.conf.sample 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [general]
  2. ;parkeddynamic = yes ; Enables dynamically created parkinglots. (default is no)
  3. ; A parking lot named 'default' will automatically be used when no other
  4. ; named parking lot is indicated for use by the park application or a
  5. ; channel's parkinglot function and PARKINGLOT channel variable. This parking
  6. ; lot is guaranteed to exist and will be created even if default is left out of
  7. ; the configuration file.
  8. [default] ; Default Parking Lot
  9. parkext => 700 ; What extension to dial to park. (optional; if
  10. ; specified, extensions will be created for parkext and
  11. ; the whole range of parkpos)
  12. ;parkext_exclusive=yes ; Specify that the parkext created for this parking lot
  13. ; will only access this parking lot. (default is no)
  14. parkpos => 701-720 ; What range of parking spaces to use - must be numeric
  15. ; Creates these spaces as extensions if parkext is set.
  16. ; Since this value is interpreted numerically, leading 0's
  17. ; will be ignored (so expect 00700-00720 to map to 700-720)
  18. context => parkedcalls ; Which context parked calls and the default park
  19. ;parkinghints = no ; Add hints priorities automatically for parkpos
  20. ; extensions if parkext is set
  21. ;parkingtime => 45 ; Number of seconds a call can be parked before returning
  22. ;comebacktoorigin = yes ; Setting this option configures the behavior of call parking when the
  23. ; parked call times out (See the parkingtime option). The default value is 'yes'.
  24. ;
  25. ; 'yes' - When the parked call times out, attempt to send the call back to the peer
  26. ; that parked this call. This is done by saving off the name of the channel
  27. ; that parked the call. The call will return to the context 'park-dial' and
  28. ; an extension created based on the name of the channel that originally parked
  29. ; the call. This extension will be created automatically to do a Dial() to the
  30. ; device that originally parked the call for comebacktodialtime seconds. If the
  31. ; call is not answered, the call will proceed to the next priority (usually none
  32. ; unless you deliberately set up a catch-all second priority in the park-call
  33. ; context) in the dialplan for extension matching the peer name (same as how
  34. ; peer names are flattened into extensions when comebacktoorigin is 'no').
  35. ;
  36. ; 'no' - This option is useful for performing custom dialplan functionality prior to
  37. ; sending the call back to the extension that initially parked the call, or to
  38. ; an entirely different destination.
  39. ;
  40. ; When the parked call times out, send it back to the dialplan. The location
  41. ; will be defined by the comebackcontext option. The extension will be built from
  42. ; the saved channel name that parked the call. For example, if a SIP peer named
  43. ; '0004F2040001' parked this call, the extension will be 'SIP_0004F2040001'.
  44. ; (Note that an underscore is used here because the '/' character has a special
  45. ; meaning in extension names for CallerID matching.) If this extension does not
  46. ; exist, the call will be sent to the 's' extension, instead. Finally, if the 's'
  47. ; extension of 'parkedcallstimeout' does not exist, the call will fall back to the
  48. ; 's' extension of the 'default' context.
  49. ;
  50. ; Additionally, in this example an extension of 'SIP_0004F2040001' will be
  51. ; created in the 'park-dial' context. This extension will be set up to do a
  52. ; Dial() to 'SIP/0004F2040001'.
  53. ;
  54. ; During the timeout procedure, the following variables are set
  55. ; PARKINGSLOT - extension that the call was parked in prior to timing out
  56. ; PARKEDLOT - name of the lot that the call was parked in prior to timing out
  57. ; PARKER - dial string to call the device that parked the call
  58. ;comebackdialtime = 30 ; When a parked call times out, this is the number of seconds to dial the device that
  59. ; originally parked the call. It is also available as a channel variable COMEBACKDIALTIME
  60. ; after a parked call has timed out.
  61. ; The default value is 30 seconds.
  62. ;comebackcontext = parkedcallstimeout
  63. ; The context a timed out call will return to if comebcktoorigin=no.
  64. ; The default value is 'parkedcallstimeout'.
  65. ;courtesytone = beep ; Sound file to play to when someone picks up a parked call
  66. ; and also when the Touch Monitor is activated/deactivated.
  67. ; Default is no tone.
  68. ;parkedplay = caller ; Who to play courtesytone to when picking up a parked call.
  69. ; One of: parked, caller, both (default is caller)
  70. ;parkedcalltransfers = caller ; Enables or disables DTMF based transfers when picking up a parked call.
  71. ; one of: callee, caller, both, no (default is no)
  72. ;parkedcallreparking = caller ; Enables or disables DTMF based parking when picking up a parked call.
  73. ; one of: callee, caller, both, no (default is no)
  74. ;parkedcallhangup = caller ; Enables or disables DTMF based hangups when picking up a parked call.
  75. ; one of: callee, caller, both, no (default is no)
  76. ;findslot => next ; Sets the method for selecting parking spaces when a call is parked
  77. ; 'next' - use the next parking space from the most recently used one.
  78. ; 'first' - use the lowest numbered parking space available
  79. ;parkedmusicclass = default ; This is the MOH class to use for the parked channel
  80. ; as long as the class is not set on the channel directly
  81. ; using Set(CHANNEL(musicclass)=whatever) in the dialplan
  82. ;*** Define another parking lot
  83. ;
  84. ; The parkinglot used can be set with the CHANNEL(parkinglot) dialplan function or by
  85. ; setting the 'parkinglot' configuration for a channel in its configuration file.
  86. ;
  87. ; Parking lots can now be any named configuration category aside from
  88. ; 'general' which is reserved for general options. They no longer need to be
  89. ; prefixed with 'parkinglot_'
  90. ;
  91. ;[edvina]
  92. ;context => edvina_park
  93. ;parkpos => 800-850
  94. ;findslot => next
  95. ;comebacktoorigin = no
  96. ;comebackdialtime = 90
  97. ;comebackcontext = edvinapark-timeout
  98. ;parkedmusicclass = edvina
  99. ;
  100. ; Since edvina doesn't define parkext, extensions won't automatically be
  101. ; created for parking to it or for retrieving calls from it. These can be
  102. ; created manually in the dial plan by using the Park and ParkedCall
  103. ; applications.