zapata.conf.sample 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. ;
  2. ; Zapata telephony interface
  3. ;
  4. ; Configuration file
  5. [channels]
  6. ;
  7. ; Default language
  8. ;
  9. ;language=en
  10. ;
  11. ; Default context
  12. ;
  13. context=default
  14. ;
  15. ; Switchtype: Only used for PRI.
  16. ;
  17. ; national: National ISDN 2 (default)
  18. ; dms100: Nortel DMS100
  19. ; 4ess: AT&T 4ESS
  20. ; 5ess: Lucent 5ESS
  21. ; euroisdn: EuroISDN
  22. ; ni1: Old National ISDN 1
  23. ;
  24. switchtype=national
  25. ;
  26. ; PRI Dialplan: Only RARELY used for PRI.
  27. ;
  28. ; unknown: Unknown
  29. ; private: Private ISDN
  30. ; local: Local ISDN
  31. ; national: National ISDN
  32. ; international: International ISDN
  33. ;
  34. ;pridialplan=national
  35. ;
  36. ; Overlap dialing mode (sending overlap digits)
  37. ;
  38. ;overlapdial=yes
  39. ;
  40. ; Signalling method (default is fxs). Valid values:
  41. ; em: E & M
  42. ; em_w: E & M Wink
  43. ; featd: Feature Group D (The fake, Adtran style, DTMF)
  44. ; featdmf: Feature Group D (The real thing, MF (domestic, US))
  45. ; featb: Feature Group B (MF (domestic, US))
  46. ; fxs_ls: FXS (Loop Start)
  47. ; fxs_gs: FXS (Ground Start)
  48. ; fxs_ks: FXS (Kewl Start)
  49. ; fxo_ls: FXO (Loop Start)
  50. ; fxo_gs: FXO (Ground Start)
  51. ; fxo_ks: FXO (Kewl Start)
  52. ; pri_cpe: PRI signalling, CPE side
  53. ; pri_net: PRI signalling, Network side
  54. ; sf: SF (Inband Tone) Signalling
  55. ; sf_w: SF Wink
  56. ; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF)
  57. ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US))
  58. ; sf_featb: SF Feature Group B (MF (domestic, US))
  59. ; The following are used for Radio interfaces:
  60. ; fxs_rx: Receive audio/COR on an FXS kewlstart interface (FXO at the channel bank)
  61. ; fxs_tx: Transmit audio/PTT on an FXS loopstart interface (FXO at the channel bank)
  62. ; fxo_rx: Receive audio/COR on an FXO loopstart interface (FXS at the channel bank)
  63. ; fxo_tx: Transmit audio/PTT on an FXO groundstart interface (FXS at the channel bank)
  64. ; em_rx: Receive audio/COR on an E&M interface (1-way)
  65. ; em_tx: Transmit audio/PTT on an E&M interface (1-way)
  66. ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface (2-way)
  67. ; em_rxtx: same as em_txrx (for our dyslexic friends)
  68. ; sf_rx: Receive audio/COR on an SF interface (1-way)
  69. ; sf_tx: Transmit audio/PTT on an SF interface (1-way)
  70. ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface (2-way)
  71. ; sf_rxtx: same as sf_txrx (for our dyslexic friends)
  72. ;
  73. signalling=fxo_ls
  74. ;
  75. ; Whether or not to do distinctive ring detection on FXO lines
  76. ;
  77. ;usedistinctiveringdetection=yes
  78. ;
  79. ; Whether or not to use caller ID
  80. ;
  81. usecallerid=yes
  82. ;
  83. ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
  84. ;
  85. hidecallerid=no
  86. ;
  87. ; Whether or not to enable call waiting on FXO lines
  88. ;
  89. callwaiting=yes
  90. ;
  91. ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not available for the user)
  92. ; Mostly use with FXS ports
  93. ;
  94. ;restrictcid=no
  95. ;
  96. ; Whether or not use the caller ID presentation for the outgoing call that the calling switch is sending
  97. ;
  98. usecallingpres=yes
  99. ;
  100. ; Support Caller*ID on Call Waiting
  101. ;
  102. callwaitingcallerid=yes
  103. ;
  104. ; Support three-way calling
  105. ;
  106. threewaycalling=yes
  107. ;
  108. ; Support flash-hook call transfer (requires three way calling)
  109. ;
  110. transfer=yes
  111. ;
  112. ; Support call forward variable
  113. ;
  114. cancallforward=yes
  115. ;
  116. ; Whether or not to support Call Return (*69)
  117. ;
  118. callreturn=yes
  119. ;
  120. ; Stutter dialtone support: If a mailbox is specified, then when voicemail
  121. ; is received in that mailbox, taking the phone off hook will cause
  122. ; a stutter dialtone instead of a normal one
  123. ;
  124. ;mailbox=1234
  125. ;
  126. ; Enable echo cancellation
  127. ; Use either "yes", "no", or a power of two from 32 to 256 if you wish
  128. ; to actually set the number of taps of cancellation.
  129. ;
  130. echocancel=yes
  131. ;
  132. ; Generally, it is not necessary (and in fact undesirable) to echo cancel
  133. ; when the circuit path is entirely TDM. You may, however, reverse this
  134. ; behavior by enabling the echo cancel during pure TDM bridging below.
  135. ;
  136. echocancelwhenbridged=yes
  137. ;
  138. ; In some cases, the echo canceller doesn't train quickly enough and there
  139. ; is echo at the beginning of the call. Enabling echo training will cause
  140. ; asterisk to briefly mute the channel, send an impulse, and use the impulse
  141. ; response to pre-train the echo canceller so it can start out with a much
  142. ; closer idea of the actual echo.
  143. ;
  144. ;echotraining=yes
  145. ;
  146. ; If you are having trouble with DTMF detection, you can relax the
  147. ; DTMF detection parameters. Relaxing them may make the DTMF detector
  148. ; more likely to have "talkoff" where DTMF is detected when it
  149. ; shouldn't be.
  150. ;
  151. ;relaxdtmf=yes
  152. ;
  153. ; You may also set the default receive and transmit gains (in dB)
  154. ;
  155. rxgain=0.0
  156. txgain=0.0
  157. ;
  158. ; Logical groups can be assigned to allow outgoing rollover. Groups
  159. ; range from 0 to 31, and multiple groups can be specified.
  160. ;
  161. group=1
  162. ;
  163. ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing
  164. ; and it is a member of a group which is one of your pickup groups, then
  165. ; you can answer it by picking up and dialing *8#. For simple offices, just
  166. ; make these both the same
  167. ;
  168. callgroup=1
  169. pickupgroup=1
  170. ;
  171. ; Specify whether the channel should be answered immediately or
  172. ; if the simple switch should provide dialtone, read digits, etc.
  173. ;
  174. immediate=no
  175. ;
  176. ; CallerID can be set to "asreceived" or a specific number
  177. ; if you want to override it. Note that "asreceived" only
  178. ; applies to trunk interfaces.
  179. ;
  180. ;callerid=2564286000
  181. ;
  182. ; AMA flags affects the recording of Call Detail Records. If specified
  183. ; it may be 'default', 'omit', 'billing', or 'documentation'.
  184. ;
  185. ;amaflags=default
  186. ;
  187. ; Channels may be associated with an account code to ease
  188. ; billing
  189. ;
  190. ;accountcode=lss0101
  191. ;
  192. ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
  193. ; basis if you have (or may have) ADSI compatible CPE equipment
  194. ;
  195. ;adsi=yes
  196. ;
  197. ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
  198. ; etc, it can be useful to perform busy detection either in an effort to
  199. ; detect hangup or for detecting busies
  200. ;
  201. ;busydetect=yes
  202. ;
  203. ; If busydetect is enabled, is also possible to specify how many
  204. ; busy tones to wait before hanging up. The default is 4, but
  205. ; better results can be achieved if set to 6 or even 8. Mind that
  206. ; higher the number, more time is needed to hangup a channel, but
  207. ; lower is probability to get random hangups
  208. ;
  209. ;busycount=4
  210. ;
  211. ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
  212. ; of a call through RINGING, BUSY, and ANSWERING. If turned on, call
  213. ; progress attempts to determine answer, busy, and ringing on phone lines.
  214. ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
  215. ; so don't count on it being very accurate. Also, it is ONLY configured for
  216. ; standard U.S. tones. This feature can also easily detect false hangups.
  217. ; The symptoms of this is being disconnected in the middle of a call for no
  218. ; reason.
  219. ;
  220. ;callprogress=yes
  221. ;
  222. ; Select which class of music to use for music on hold. If not specified
  223. ; then the default will be used.
  224. ;
  225. ;musiconhold=default
  226. ;
  227. ; PRI channels can have an idle extension and a minunused number. So long
  228. ; as at least "minunused" channels are idle, chan_zap will try to call
  229. ; "idledial" on them, and then dump them into the PBX in the "idleext"
  230. ; extension (which is of the form exten@context). When channels are needed
  231. ; the "idle" calls are disconnected (so long as there are at least "minidle"
  232. ; calls still running, of course) to make more channels available. The
  233. ; primary use of this is to create a dynamic service, where idle channels
  234. ; are bundled through multilink PPP, thus more efficiently utilizing
  235. ; combined voice/data services than conventional fixed mappings/muxings.
  236. ;
  237. ;idledial=6999
  238. ;idleext=6999@dialout
  239. ;minunused=2
  240. ;minidle=1
  241. ;
  242. ; Configure jitter buffers in zapata (each one is 20ms, default is 4)
  243. ;
  244. ;jitterbuffers=4
  245. ;
  246. ; Each channel consists of the channel number or range. It
  247. ; inherits the parameters that were specified above its declaration
  248. ;
  249. ;callerid="Green Phone"<(256) 428-6121>
  250. ;channel => 1
  251. ;callerid="Black Phone"<(256) 428-6122>
  252. ;channel => 2
  253. ;callerid="CallerID Phone" <(256) 428-6123>
  254. ;callerid="CallerID Phone" <(630) 372-1564>
  255. ;callerid="CallerID Phone" <(256) 704-4666>
  256. ;channel => 3
  257. ;callerid="Pac Tel Phone" <(256) 428-6124>
  258. ;channel => 4
  259. ;callerid="Uniden Dead" <(256) 428-6125>
  260. ;channel => 5
  261. ;callerid="Cortelco 2500" <(256) 428-6126>
  262. ;channel => 6
  263. ;callerid="Main TA 750" <(256) 428-6127>
  264. ;channel => 44
  265. ;
  266. ; For example, maybe we have some other channels
  267. ; which start out in a different context and use
  268. ; E & M signalling instead.
  269. ;
  270. ;context=remote
  271. ;sigalling=em
  272. ;channel => 15
  273. ;channel => 16
  274. ;signalling=em_w
  275. ;
  276. ; All those in group 0 I'll use for outgoing calls
  277. ;
  278. ; Strip most significant digit (9) before sending
  279. ;
  280. ;stripmsd=1
  281. ;callerid=asreceived
  282. ;group=0
  283. ;signalling=fxs_ls
  284. ;channel => 45
  285. ;signalling=fxo_ls
  286. ;group=1
  287. ;callerid="Joe Schmoe" <(256) 428-6131>
  288. ;channel => 25
  289. ;callerid="Megan May" <(256) 428-6132>
  290. ;channel => 26
  291. ;callerid="Suzy Queue" <(256) 428-6233>
  292. ;channel => 27
  293. ;callerid="Larry Moe" <(256) 428-6234>
  294. ;channel => 28
  295. ;
  296. ; Sample PRI (CPE) config: Specify the switchtype, the signalling as
  297. ; either pri_cpe or pri_net for CPE or Network termination, and generally
  298. ; you will want to create a single "group" for all channels of the PRI.
  299. ;
  300. ; switchtype = national
  301. ; signalling = pri_cpe
  302. ; group = 2
  303. ; channel => 1-23
  304. ;
  305. ; Used for distintive ring support for x100p.
  306. ; You can see the dringX patterns is to set any one of the dringXcontext fields
  307. ; and they will be printed on the console when an inbound call comes in.
  308. ;
  309. ;dring1=95,0,0
  310. ;dring1context=internal1
  311. ;dring2=325,95,0
  312. ;dring2context=internal2
  313. ; If no pattern is matched here is where we go.
  314. ;context=default
  315. ;channel => 1