res_parking.conf.sample 11 KB

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