skinny.conf.sample 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. ; See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for a description of these parameters.
  36. ;tos=cs3 ; Sets TOS for signaling packets.
  37. ;tos_audio=ef ; Sets TOS for RTP audio packets.
  38. ;tos_video=af41 ; Sets TOS for RTP video packets.
  39. ;cos=3 ; Sets 802.1p priority for signaling packets.
  40. ;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
  41. ;cos_video=4 ; Sets 802.1p priority for RTP video packets.
  42. ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
  43. ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  44. ; skinny channel. Defaults to "no". An enabled jitterbuffer will
  45. ; be used only if the sending side can create and the receiving
  46. ; side can not accept jitter. The skinny channel can accept
  47. ; jitter, thus a jitterbuffer on the receive skinny side will be
  48. ; used only if it is forced and enabled.
  49. ;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a skinny
  50. ; channel. Defaults to "no".
  51. ;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  52. ;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  53. ; resynchronized. Useful to improve the quality of the voice, with
  54. ; big jumps in/broken timestamps, usually sent from exotic devices
  55. ; and programs. Defaults to 1000.
  56. ;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a
  57. ; skinny channel. Two implementations are currently available
  58. ; - "fixed" (with size always equals to jbmaxsize)
  59. ; - "adaptive" (with variable size, actually the new jb of IAX2).
  60. ; Defaults to fixed.
  61. ;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  62. ;-----------------------------------------------------------------------------------
  63. [lines]
  64. ;----------------------------------- LINES SECTION --------------------------------
  65. ; Options set under [lines] apply to all lines unless explicitly set for a particular
  66. ; device. The options that can be set under lines are specified in GENERAL LINE OPTIONS.
  67. ; These options can also be set for each individual device as well as those under SPECIFIC
  68. ; LINE OPTIONS.
  69. ;
  70. ; Each label below [lines] in [] is a new line with the specific options specified below
  71. ; it. Config stops reading new lines when one of the following is found: [general], [devices]
  72. ; or the end of skinny.conf.
  73. ;
  74. ; Where options are common to both lines and devices, the results typically take that of
  75. ; the least permission. ie if a no is set for either line or device, the call will not be
  76. ; able to use that permission
  77. ;-------------------------------- GENERAL LINE OPTIONS -----------------------------
  78. ;earlyrtp=1 ; whether audio signalling should be provided by asterisk
  79. ; ; (earlyrtp=1) or device generated (earlyrtp=0). default=yes
  80. ;transfer=1 ; whether the device is allowed to transfer. default=yes
  81. ;context=default ; context to use for this line.
  82. ;------------------------------- SPECIFIC LINE OPTIONS -----------------------------
  83. ;setvar= ; allows for the setting of chanvars.
  84. ;-----------------------------------------------------------------------------------
  85. ;[100]
  86. ;nat=yes
  87. ;callerid="Customer Support" <810-234-1212>
  88. ;mailbox=100
  89. ;vmexten=8500 ; Device level voicemailmain pilot number
  90. ;regexten=100
  91. ;context=inbound
  92. ;linelabel="Support Line" ; Displays next to the line
  93. ; button on 7940's and 7960s
  94. ;[110]
  95. ;callerid="John Chambers" <408-526-4000>
  96. ;context=did
  97. ;regexten=110
  98. ;linelabel="John"
  99. ;mailbox=110
  100. ;[120]
  101. ;Nothing set, so all the defaults are used
  102. ;[500]
  103. ;nat=yes
  104. ;callerid="George W. Bush" <202-456-1414>
  105. ;setvar=CUSTID=5678 ; Channel variable to be set for all calls from this device
  106. ;setvar=ATTENDED_TRANSFER_COMPLETE_SOUND=beep ; This channel variable will
  107. ; cause the given audio file to
  108. ; be played upon completion of
  109. ; an attended transfer.
  110. ;mailbox=500
  111. ;callwaiting=yes
  112. ;transfer=yes
  113. ;threewaycalling=yes
  114. ;context=default
  115. ;mohinterpret=default ; This option specifies a default music on hold class to
  116. ; use when put on hold if the channel's moh class was not
  117. ; explicitly set with Set(CHANNEL(musicclass)=whatever) and
  118. ; the peer channel did not suggest a class to use.
  119. ;mohsuggest=default ; This option specifies which music on hold class to suggest to the peer channel
  120. ; when this channel places the peer on hold. It may be specified globally or on
  121. ; a per-user or per-peer basis.
  122. [devices]
  123. ;---------------------------------- DEVICES SECTION -------------------------------
  124. ; Options set under [devices] apply to all devices unless explicitly set for a particular
  125. ; device. The options that can be set under devices are specified in GENERAL DEVICE OPTIONS.
  126. ; These options can also be set for each individual device as well as those under SPECIFIC
  127. ; DEVICE OPTIONS.
  128. ;
  129. ; Each label below [devices] in [] is a new device with the specific options specified below
  130. ; it. Config stop reading new devices when one of the following is found: [general], [lines]
  131. ; or the end of skinny.conf.
  132. ;
  133. ; Where options are common to both lines and devices, the results typically take that of
  134. ; the least permission. ie if a no is set for either line or device, the call will not be
  135. ; able to use that permission
  136. ;------------------------------- GENERAL DEVICE OPTIONS ----------------------------
  137. ;earlyrtp=1 ; whether audio signalling should be provided by asterisk
  138. ; ; (earlyrtp=1) or device generated (earlyrtp=0). default=yes
  139. ;transfer=1 ; whether the device is allowed to transfer. default=yes
  140. ;------------------------------ SPECIFIC DEVICE OPTIONS ----------------------------
  141. ;device="SEPxxxxxxxxxxxx ; id of the device. Must be set.
  142. ;version=P002G204 ; firmware version to be loaded. If this version is different
  143. ; ; to the one on the device, the device will try to load this
  144. ; ; version from the tftp server. Set to device firmware version.
  145. ;-----------------------------------------------------------------------------------
  146. ; Typical config for 12SP+
  147. ;[florian]
  148. ;device=SEP00D0BA847E6B
  149. ;version=P002G204 ; Thanks critch
  150. ;context=did
  151. ;directmedia=yes ; Allow media to go directly between two RTP endpoints.
  152. ;line=120 ; Dial(Skinny/120@florian)
  153. ; Typical config for a 7910
  154. ;[duba] ; Device name
  155. ;device=SEP0007EB463101 ; Official identifier
  156. ;version=P002F202 ; Firmware version identifier
  157. ;host=192.168.1.144
  158. ;permit=192.168.0/24 ; Optional, used for authentication
  159. ;line=500
  160. ; Typical config for a 7940 with dual 7914s
  161. ;[support]
  162. ;device=SEP0007EB463121
  163. ;line=100
  164. ;line=110
  165. ;speeddial => 111,Jack Smith ; Adds a speeddial button to a device.
  166. ;speeddial => 112@hints,Bob Peterson ; When a context is specified, the speeddial watches a dialplan hint.
  167. ;addon => 7914
  168. ;addon => 7914