skinny.conf 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. ;
  2. ; Skinny Configuration for Asterisk
  3. ;
  4. [general]
  5. bindaddr=0.0.0.0 ; Address to bind to
  6. bindport=2000 ; Port to bind to, default tcp/2000
  7. dateformat=M-D-Y ; M,D,Y in any order (6 chars max)
  8. ; "A" may also be used, but it must be at the end.
  9. ; Use M for month, D for day, Y for year, A for 12-hour time.
  10. keepalive=120
  11. ;authtimeout = 30 ; authtimeout specifies the maximum number of seconds a
  12. ; client has to authenticate. If the client does not
  13. ; authenticate beofre this timeout expires, the client
  14. ; will be disconnected. (default: 30 seconds)
  15. ;authlimit = 50 ; authlimit specifies the maximum number of
  16. ; unauthenticated sessions that will be allowed to
  17. ; connect at any given time. (default: 50)
  18. ;vmexten=8500 ; Systemwide voicemailmain pilot number
  19. ; It must be in the same context as the calling
  20. ; device/line
  21. ; If regcontext is specified, Asterisk will dynamically create and destroy a
  22. ; NoOp priority 1 extension for a given line which registers or unregisters with
  23. ; us and have a "regexten=" configuration item.
  24. ; Multiple contexts may be specified by separating them with '&'. The
  25. ; actual extension is the 'regexten' parameter of the registering line or its
  26. ; name if 'regexten' is not provided. If more than one context is provided,
  27. ; the context must be specified within regexten by appending the desired
  28. ; context after '@'. More than one regexten may be supplied if they are
  29. ; separated by '&'. Patterns may be used in regexten.
  30. ;
  31. ;regcontext=skinnyregistrations
  32. ;allow=all ; see https://wiki.asterisk.org/wiki/display/AST/RTP+Packetization
  33. ; for framing options
  34. ;disallow=
  35. ; The imeddialkey option allows for a key to be used to immediately dial the already
  36. ; entered number. This is useful where the dialplan includes variable length pattern
  37. ; matching. Valid options are '#' and '*'. On devices with soft buttons, a button will
  38. ; be available to immediately dial when a pattern than can be dialed has been entered.
  39. ; Default is unset, that is no immediated dial key (softbutton still exists).
  40. ;
  41. ;immeddialkey=#
  42. ; See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for a description of these parameters.
  43. ;tos=cs3 ; Sets TOS for signaling packets.
  44. ;tos_audio=ef ; Sets TOS for RTP audio packets.
  45. ;tos_video=af41 ; Sets TOS for RTP video packets.
  46. ;cos=3 ; Sets 802.1p priority for signaling packets.
  47. ;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
  48. ;cos_video=4 ; Sets 802.1p priority for RTP video packets.
  49. ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
  50. ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  51. ; skinny channel. Defaults to "no". An enabled jitterbuffer will
  52. ; be used only if the sending side can create and the receiving
  53. ; side can not accept jitter. The skinny channel can accept
  54. ; jitter, thus a jitterbuffer on the receive skinny side will be
  55. ; used only if it is forced and enabled.
  56. ;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a skinny
  57. ; channel. Defaults to "no".
  58. ;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  59. ;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  60. ; resynchronized. Useful to improve the quality of the voice, with
  61. ; big jumps in/broken timestamps, usually sent from exotic devices
  62. ; and programs. Defaults to 1000.
  63. ;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a
  64. ; skinny channel. Two implementations are currently available
  65. ; - "fixed" (with size always equals to jbmaxsize)
  66. ; - "adaptive" (with variable size, actually the new jb of IAX2).
  67. ; Defaults to fixed.
  68. ;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  69. ;-----------------------------------------------------------------------------------
  70. [lines]
  71. ;----------------------------------- LINES SECTION --------------------------------
  72. ; Options set under [lines] apply to all lines unless explicitly set for a particular
  73. ; device. The options that can be set under lines are specified in GENERAL LINE OPTIONS.
  74. ; These options can also be set for each individual device as well as those under SPECIFIC
  75. ; LINE OPTIONS.
  76. ;
  77. ; Each label below [lines] in [] is a new line with the specific options specified below
  78. ; it. Config stops reading new lines when one of the following is found: [general], [devices]
  79. ; or the end of skinny.conf.
  80. ;
  81. ; Where options are common to both lines and devices, the results typically take that of
  82. ; the least permission. ie if a no is set for either line or device, the call will not be
  83. ; able to use that permission
  84. ;-------------------------------- GENERAL LINE OPTIONS -----------------------------
  85. ;earlyrtp=1 ; whether audio signalling should be provided by asterisk
  86. ; ; (earlyrtp=1) or device generated (earlyrtp=0). default=yes
  87. ;transfer=1 ; whether the device is allowed to transfer. default=yes
  88. ;context=default ; context to use for this line.
  89. ;callfwdtimeout=20000 ; ms before cfwd_noans occurs (default 20 secs)
  90. ;------------------------------- SPECIFIC LINE OPTIONS -----------------------------
  91. ;setvar= ; allows for the setting of chanvars.
  92. ;-----------------------------------------------------------------------------------
  93. ;[100]
  94. ;nat=yes
  95. ;callerid="Customer Support" <810-234-1212>
  96. ; Note: app_voicemail mailboxes must be in the form of mailbox@context.
  97. ;mailbox=100
  98. ;vmexten=8500 ; Device level voicemailmain pilot number
  99. ;regexten=100
  100. ;context=inbound
  101. ;linelabel="Support Line" ; Displays next to the line
  102. ; button on 7940's and 7960s
  103. ;[110]
  104. ;callerid="John Chambers" <408-526-4000>
  105. ;context=did
  106. ;regexten=110
  107. ;linelabel="John"
  108. ;mailbox=110
  109. ;[120]
  110. ;Nothing set, so all the defaults are used
  111. ;[500]
  112. ;nat=yes
  113. ;callerid="George W. Bush" <202-456-1414>
  114. ;setvar=CUSTID=5678 ; Channel variable to be set for all calls from this device
  115. ;setvar=ATTENDED_TRANSFER_COMPLETE_SOUND=beep ; This channel variable will
  116. ; cause the given audio file to
  117. ; be played upon completion of
  118. ; an attended transfer to the
  119. ; target of the transfer.
  120. ;mailbox=500
  121. ;callwaiting=yes
  122. ;transfer=yes
  123. ;threewaycalling=yes
  124. ;context=default
  125. ;mohinterpret=default ; This option specifies a default music on hold class to
  126. ; use when put on hold if the channel's moh class was not
  127. ; explicitly set with Set(CHANNEL(musicclass)=whatever) and
  128. ; the peer channel did not suggest a class to use.
  129. ;mohsuggest=default ; This option specifies which music on hold class to suggest to the peer channel
  130. ; when this channel places the peer on hold. It may be specified globally or on
  131. ; a per-user or per-peer basis.
  132. [devices]
  133. ;---------------------------------- DEVICES SECTION -------------------------------
  134. ; Options set under [devices] apply to all devices unless explicitly set for a particular
  135. ; device. The options that can be set under devices are specified in GENERAL DEVICE OPTIONS.
  136. ; These options can also be set for each individual device as well as those under SPECIFIC
  137. ; DEVICE OPTIONS.
  138. ;
  139. ; Each label below [devices] in [] is a new device with the specific options specified below
  140. ; it. Config stop reading new devices when one of the following is found: [general], [lines]
  141. ; or the end of skinny.conf.
  142. ;
  143. ; Where options are common to both lines and devices, the results typically take that of
  144. ; the least permission. ie if a no is set for either line or device, the call will not be
  145. ; able to use that permission
  146. ;------------------------------- GENERAL DEVICE OPTIONS ----------------------------
  147. ;earlyrtp=1 ; whether audio signalling should be provided by asterisk
  148. ; ; (earlyrtp=1) or device generated (earlyrtp=0). default=yes
  149. ;transfer=1 ; whether the device is allowed to transfer. default=yes
  150. ;------------------------------ SPECIFIC DEVICE OPTIONS ----------------------------
  151. ;device="SEPxxxxxxxxxxxx ; id of the device. Must be set.
  152. ;version=P002G204 ; firmware version to be loaded. If this version is different
  153. ; ; to the one on the device, the device will try to load this
  154. ; ; version from the tftp server. Set to device firmware version.
  155. ;-----------------------------------------------------------------------------------
  156. ; Typical config for 12SP+
  157. ;[florian]
  158. ;device=SEP00D0BA847E6B
  159. ;version=P002G204 ; Thanks critch
  160. ;context=did
  161. ;directmedia=yes ; Allow media to go directly between two RTP endpoints.
  162. ;line=120 ; Dial(Skinny/120@florian)
  163. ; Service URLs attached to line buttons (eg phone directory)
  164. ; See http://www.voip-info.org/wiki/view/Asterisk+Cisco+79XX+XML+Services
  165. ; for intro to xml structure.
  166. ;serviceurl=Directory,http://host/file.xml
  167. ; Typical config for a 7910
  168. ;[duba] ; Device name
  169. ;device=SEP0007EB463101 ; Official identifier
  170. ;version=P002F202 ; Firmware version identifier
  171. ;host=192.168.1.144
  172. ;permit=192.168.0/24 ; Optional, used for authentication
  173. ;line=500
  174. ; Typical config for a 7940 with dual 7914s
  175. ;[support]
  176. ;device=SEP0007EB463121
  177. ;line=100
  178. ;line=110
  179. ;speeddial => 111,Jack Smith ; Adds a speeddial button to a device.
  180. ;speeddial => 112@hints,Bob Peterson ; When a context is specified, the speeddial watches a dialplan hint.
  181. ;addon => 7914
  182. ;addon => 7914