Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.14 KB | None | 0 0
  1. ;
  2. ; DAHDI telephony
  3. ;
  4. ; Configuration file
  5. ;
  6. ; You need to restart Asterisk to re-configure the DAHDI channel
  7. ; CLI> reload chan_dahdi.so
  8. ; will reload the configuration file,
  9. ; but not all configuration options are
  10. ; re-configured during a reload (signalling, as well as
  11. ; PRI and SS7-related settings cannot be changed on a
  12. ; reload.
  13. ;
  14. ; This file documents many configuration variables. Normally unless you
  15. ; know what a variable means or that it should be changed, there's no
  16. ; reason to unrem lines.
  17. ;
  18. ; remmed-out examples below (those lines that begin with a ';' but no
  19. ; space afterwards) typically show a value that is not the defauult value,
  20. ; but would make sense under cetain circumstances. The default values
  21. ; are usually sane. Thus you should typically not touch them unless you
  22. ; know what they mean or you know you should change them.
  23.  
  24.  
  25. [trunkgroups]
  26. ;
  27. ; Trunk groups are used for NFAS or GR-303 connections.
  28. ;
  29. ; Group: Defines a trunk group.
  30. ; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
  31. ;
  32. ; trunkgroup is the numerical trunk group to create
  33. ; dchannel is the DAHDI channel which will have the
  34. ; d-channel for the trunk.
  35. ; backup1 is an optional list of backup d-channels.
  36. ;
  37. ;trunkgroup => 1,24,48
  38. ;trunkgroup => 1,24
  39. ;
  40. ; Spanmap: Associates a span with a trunk group
  41. ; spanmap => <dahdispan>,<trunkgroup>[,<logicalspan>]
  42. ;
  43. ; dahdispan is the DAHDI span number to associate
  44. ; trunkgroup is the trunkgroup (specified above) for the mapping
  45. ; logicalspan is the logical span number within the trunk group to use.
  46. ; if unspecified, no logical span number is used.
  47. ;
  48. ;spanmap => 1,1,1
  49. ;spanmap => 2,1,2
  50. ;spanmap => 3,1,3
  51. ;spanmap => 4,1,4
  52.  
  53. [channels]
  54. ;
  55. ; Default language
  56. ;
  57. ;language=en
  58. ;
  59. ; Context for calls. Defaults to 'default'
  60. ;
  61. ;context=incoming
  62. ;
  63. ; Switchtype: Only used for PRI.
  64. ;
  65. ; national: National ISDN 2 (default)
  66. ; dms100: Nortel DMS100
  67. ; 4ess: AT&T 4ESS
  68. ; 5ess: Lucent 5ESS
  69. ; euroisdn: EuroISDN (common in Europe)
  70. ; ni1: Old National ISDN 1
  71. ; qsig: Q.SIG
  72. ;
  73. ;switchtype=euroisdn
  74. ;
  75. ; Some switches (AT&T especially) require network specific facility IE
  76. ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
  77. ;
  78. ; nsf cannot be changed on a reload.
  79. ;
  80. ;nsf=none
  81. ;
  82. ; PRI Dialplan: The ISDN-level Type Of Number (TON) or numbering plan, used for
  83. ; the dialed number. For most installations, leaving this as 'unknown' (the
  84. ; default) works in the most cases. In some very unusual circumstances, you
  85. ; may need to set this to 'dynamic' or 'redundant'. Note that if you set one
  86. ; of the others, you will be unable to dial another class of numbers. For
  87. ; example, if you set 'national', you will be unable to dial local or
  88. ; international numbers.
  89. ;
  90. ; PRI Local Dialplan: Only RARELY used for PRI (sets the calling number's
  91. ; numbering plan). In North America, the typical use is sending the 10 digit
  92. ; callerID number and setting the prilocaldialplan to 'national' (the default).
  93. ; Only VERY rarely will you need to change this.
  94. ;
  95. ; Neither pridialplan nor prilocaldialplan can be changed on reload.
  96. ;
  97. ; unknown: Unknown
  98. ; private: Private ISDN
  99. ; local: Local ISDN
  100. ; national: National ISDN
  101. ; international: International ISDN
  102. ; dynamic: Dynamically selects the appropriate dialplan
  103. ; redundant: Same as dynamic, except that the underlying number is not
  104. ; changed (not common)
  105. ;
  106. ;pridialplan=unknown
  107. ;prilocaldialplan=national
  108. ;
  109. ; pridialplan may be also set at dialtime, by prefixing the dialled number with
  110. ; one of the following letters:
  111. ; U - Unknown
  112. ; I - International
  113. ; N - National
  114. ; L - Local (Net Specific)
  115. ; S - Subscriber
  116. ; V - Abbreviated
  117. ; R - Reserved (should probably never be used but is included for completeness)
  118. ;
  119. ; Additionally, you may also set the following NPI bits (also by prefixing the
  120. ; dialled string with one of the following letters):
  121. ; u - Unknown
  122. ; e - E.163/E.164 (ISDN/telephony)
  123. ; x - X.121 (Data)
  124. ; f - F.69 (Telex)
  125. ; n - National
  126. ; p - Private
  127. ; r - Reserved (should probably never be used but is included for completeness)
  128. ;
  129. ; You may also set the prilocaldialplan in the same way, but by prefixing the
  130. ; Caller*ID Number, rather than the dialled number. Please note that telcos
  131. ; which require this kind of additional manipulation of the TON/NPI are *rare*.
  132. ; Most telco PRIs will work fine simply by setting pridialplan to unknown or
  133. ; dynamic.
  134. ;
  135. ;
  136. ; PRI caller ID prefixes based on the given TON/NPI (dialplan)
  137. ; This is especially needed for EuroISDN E1-PRIs
  138. ;
  139. ; None of the prefix settings can be changed on reload.
  140. ;
  141. ; sample 1 for Germany
  142. ;internationalprefix = 00
  143. ;nationalprefix = 0
  144. ;localprefix = 0711
  145. ;privateprefix = 07115678
  146. ;unknownprefix =
  147. ;
  148. ; sample 2 for Germany
  149. ;internationalprefix = +
  150. ;nationalprefix = +49
  151. ;localprefix = +49711
  152. ;privateprefix = +497115678
  153. ;unknownprefix =
  154. ;
  155. ; PRI resetinterval: sets the time in seconds between restart of unused
  156. ; B channels; defaults to 'never'.
  157. ;
  158. ;resetinterval = 3600
  159. ;
  160. ; Overlap dialing mode (sending overlap digits)
  161. ; Cannot be changed on a reload.
  162. ;
  163. ; incoming: incoming direction only
  164. ; outgoing: outgoing direction only
  165. ; no: neither direction
  166. ; yes or both: both directions
  167. ;
  168. ;overlapdial=yes
  169. ;
  170. ; Allow inband audio (progress) when a call is RELEASEd by the far end of a PRI
  171. ;
  172. ;inbanddisconnect=yes
  173. ;
  174. ; PRI Out of band indications.
  175. ; Enable this to report Busy and Congestion on a PRI using out-of-band
  176. ; notification. Inband indication, as used by Asterisk doesn't seem to work
  177. ; with all telcos.
  178. ;
  179. ; outofband: Signal Busy/Congestion out of band with RELEASE/DISCONNECT
  180. ; inband: Signal Busy/Congestion using in-band tones (default)
  181. ;
  182. ; priindication cannot be changed on a reload.
  183. ;
  184. ;priindication = outofband
  185. ;
  186. ; If you need to override the existing channels selection routine and force all
  187. ; PRI channels to be marked as exclusively selected, set this to yes.
  188. ;
  189. ; priexclusive cannot be changed on a reload.
  190. ;
  191. ;priexclusive = yes
  192. ;
  193. ; ISDN Timers
  194. ; All of the ISDN timers and counters that are used are configurable. Specify
  195. ; the timer name, and its value (in ms for timers).
  196. ; K: Layer 2 max number of outstanding unacknowledged I frames (default 7)
  197. ; N200: Layer 2 max number of retransmissions of a frame (default 3)
  198. ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms)
  199. ; T203: Layer 2 max time without frames being exchanged (default 10000 ms)
  200. ; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
  201. ; T308: Wait for RELEASE acknowledge (default 4000 ms)
  202. ; T309: Maintain active calls on Layer 2 disconnection (default -1,
  203. ; Asterisk clears calls)
  204. ; EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
  205. ; May vary in other ISDN standards (Q.931 1993 : 90000 ms)
  206. ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
  207. ;
  208. ;pritimer => t200,1000
  209. ;pritimer => t313,4000
  210. ;
  211. ; To enable transmission of facility-based ISDN supplementary services (such
  212. ; as caller name from CPE over facility), enable this option.
  213. ; Cannot be changed on a reload.
  214. ;
  215. ;facilityenable = yes
  216. ;
  217. ; pritimer cannot be changed on a reload.
  218. ;
  219. ; Signalling method. The default is "auto". Valid values:
  220. ; auto: Use the current value from DAHDI.
  221. ; em: E & M
  222. ; em_e1: E & M E1
  223. ; em_w: E & M Wink
  224. ; featd: Feature Group D (The fake, Adtran style, DTMF)
  225. ; featdmf: Feature Group D (The real thing, MF (domestic, US))
  226. ; featdmf_ta: Feature Group D (The real thing, MF (domestic, US)) through
  227. ; a Tandem Access point
  228. ; featb: Feature Group B (MF (domestic, US))
  229. ; fgccama Feature Group C-CAMA (DP DNIS, MF ANI)
  230. ; fgccamamf Feature Group C-CAMA MF (MF DNIS, MF ANI)
  231. ; fxs_ls: FXS (Loop Start)
  232. ; fxs_gs: FXS (Ground Start)
  233. ; fxs_ks: FXS (Kewl Start)
  234. ; fxo_ls: FXO (Loop Start)
  235. ; fxo_gs: FXO (Ground Start)
  236. ; fxo_ks: FXO (Kewl Start)
  237. ; pri_cpe: PRI signalling, CPE side
  238. ; pri_net: PRI signalling, Network side
  239. ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
  240. ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
  241. ; sf: SF (Inband Tone) Signalling
  242. ; sf_w: SF Wink
  243. ; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF)
  244. ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US))
  245. ; sf_featb: SF Feature Group B (MF (domestic, US))
  246. ; e911: E911 (MF) style signalling
  247. ; ss7: Signalling System 7
  248. ;
  249. ; The following are used for Radio interfaces:
  250. ; fxs_rx: Receive audio/COR on an FXS kewlstart interface (FXO at the
  251. ; channel bank)
  252. ; fxs_tx: Transmit audio/PTT on an FXS loopstart interface (FXO at the
  253. ; channel bank)
  254. ; fxo_rx: Receive audio/COR on an FXO loopstart interface (FXS at the
  255. ; channel bank)
  256. ; fxo_tx: Transmit audio/PTT on an FXO groundstart interface (FXS at
  257. ; the channel bank)
  258. ; em_rx: Receive audio/COR on an E&M interface (1-way)
  259. ; em_tx: Transmit audio/PTT on an E&M interface (1-way)
  260. ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface
  261. ; (2-way)
  262. ; em_rxtx: Same as em_txrx (for our dyslexic friends)
  263. ; sf_rx: Receive audio/COR on an SF interface (1-way)
  264. ; sf_tx: Transmit audio/PTT on an SF interface (1-way)
  265. ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface
  266. ; (2-way)
  267. ; sf_rxtx: Same as sf_txrx (for our dyslexic friends)
  268. ; ss7: Signalling System 7
  269. ;
  270. ; signalling of a channel can not be changed on a reload.
  271. ;
  272. ;signalling=fxo_ls
  273. ;
  274. ; If you have an outbound signalling format that is different from format
  275. ; specified above (but compatible), you can specify outbound signalling format,
  276. ; (see below). The 'signalling' format specified will be the inbound signalling
  277. ; format. If you only specify 'signalling', then it will be the format for
  278. ; both inbound and outbound.
  279. ;
  280. ; outsignalling can only be one of:
  281. ; em, em_e1, em_w, sf, sf_w, sf_featd, sf_featdmf, sf_featb, featd,
  282. ; featdmf, featdmf_ta, e911, fgccama, fgccamamf
  283. ;
  284. ; outsignalling cannot be changed on a reload.
  285. ;
  286. ;signalling=featdmf
  287. ;
  288. ;outsignalling=featb
  289. ;
  290. ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
  291. ; parameters (Will not be updated on reload):
  292. ;
  293. ;defaultozz=0000
  294. ;defaultcic=303
  295. ;
  296. ; A variety of timing parameters can be specified as well
  297. ; The default values for those are "-1", which is to use the
  298. ; compile-time defaults of the DAHDI kernel modules. The timing
  299. ; parameters, (with the standard default from DAHDI):
  300. ;
  301. ; prewink: Pre-wink time (default 50ms)
  302. ; preflash: Pre-flash time (default 50ms)
  303. ; wink: Wink time (default 150ms)
  304. ; flash: Flash time (default 750ms)
  305. ; start: Start time (default 1500ms)
  306. ; rxwink: Receiver wink time (default 300ms)
  307. ; rxflash: Receiver flashtime (default 1250ms)
  308. ; debounce: Debounce timing (default 600ms)
  309. ;
  310. ; None of them will update on a reload.
  311. ;
  312. ; How long generated tones (DTMF and MF) will be played on the channel
  313. ; (in milliseconds).
  314. ;
  315. ; This is a global, rather than a per-channel setting. It will not be
  316. ; updated on a reload.
  317. ;
  318. ;toneduration=100
  319. ;
  320. ; Whether or not to do distinctive ring detection on FXO lines:
  321. ;
  322. ;usedistinctiveringdetection=yes
  323. ;
  324. ; enable dring detection after caller ID for those countries like Australia
  325. ; where the ring cadence is changed *after* the caller ID spill:
  326. ;
  327. ;distinctiveringaftercid=yes
  328. ;
  329. ; Whether or not to use caller ID:
  330. ;
  331. usecallerid=yes
  332. ;
  333. ; Type of caller ID signalling in use
  334. ; bell = bell202 as used in US (default)
  335. ; v23 = v23 as used in the UK
  336. ; v23_jp = v23 as used in Japan
  337. ; dtmf = DTMF as used in Denmark, Sweden and Netherlands
  338. ; smdi = Use SMDI for caller ID. Requires SMDI to be enabled (usesmdi).
  339. ;
  340. ;cidsignalling=v23
  341. ;
  342. ; What signals the start of caller ID
  343. ; ring = a ring signals the start (default)
  344. ; polarity = polarity reversal signals the start
  345. ; polarity_IN = polarity reversal signals the start, for India,
  346. ; for dtmf dialtone detection; using DTMF.
  347. ; (see doc/India-CID.txt)
  348. ;
  349. ;cidstart=polarity
  350. ;
  351. ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
  352. ; (If your dialplan doesn't catch it)
  353. ;
  354. ;hidecallerid=yes
  355. ;
  356. ; Enable if you need to hide just the name and not the number for legacy PBX use.
  357. ; Only applies to PRI channels.
  358. ;hidecalleridname=yes
  359. ;
  360. ; The following option enables receiving MWI on FXO lines. The default
  361. ; value is no. When this is enabled, and MWI notification indicates on or off,
  362. ; the script specified by the mwimonitornotify option is executed. Also, an
  363. ; internal Asterisk MWI event will be generated so that any other part of
  364. ; Asterisk that cares about MWI state changes will get notified, just as if
  365. ; the state change came from app_voicemail. The energy level that must be seen
  366. ; before starting the MWI detection process can be set with 'mwilevel'.
  367. ;
  368. ;mwimonitor=no
  369. ;mwilevel=512
  370. ;
  371. ; This option is used in conjunction with mwimonitor. This will get executed
  372. ; when incoming MWI state changes. The script is passed 2 arguments. The
  373. ; first is the corresponding mailbox, and the second is 1 or 0, indicating if
  374. ; there are messages waiting or not.
  375. ;
  376. ;mwimonitornotify=/usr/local/bin/dahdinotify.sh
  377. ;
  378. ; Whether or not to enable call waiting on internal extensions
  379. ; With this set to 'yes', busy extensions will hear the call-waiting
  380. ; tone, and can use hook-flash to switch between callers. The Dial()
  381. ; app will not return the "BUSY" result for extensions.
  382. ;
  383. callwaiting=yes
  384. ;
  385. ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
  386. ; available for the user)
  387. ; Mostly use with FXS ports
  388. ; Does nothing. Use hidecallerid instead.
  389. ;
  390. ;restrictcid=no
  391. ;
  392. ; Whether or not to use the caller ID presentation from the Asterisk channel
  393. ; for outgoing calls.
  394. ; See dialplan function CALLERID(pres) for more information.
  395. ; Only applies to PRI and SS7 channels.
  396. ;
  397. usecallingpres=yes
  398. ;
  399. ; Some countries (UK) have ring tones with different ring tones (ring-ring),
  400. ; which means the caller ID needs to be set later on, and not just after
  401. ; the first ring, as per the default (1).
  402. ;
  403. ;sendcalleridafter = 2
  404. ;
  405. ;
  406. ; Support caller ID on Call Waiting
  407. ;
  408. callwaitingcallerid=yes
  409. ;
  410. ; Support three-way calling
  411. ;
  412. threewaycalling=yes
  413. ;
  414. ; For FXS ports (either direct analog or over T1/E1):
  415. ; Support flash-hook call transfer (requires three way calling)
  416. ; Also enables call parking (overrides the 'canpark' parameter)
  417. ;
  418. ; For digital ports using ISDN PRI protocols:
  419. ; Support switch-side transfer (called 2BCT, RLT or other names)
  420. ; This setting must be enabled on both ports involved, and the
  421. ; 'facilityenable' setting must also be enabled to allow sending
  422. ; the transfer to the ISDN switch, since it sent in a FACILITY
  423. ; message.
  424. ;
  425. transfer=yes
  426. ;
  427. ; Allow call parking
  428. ; ('canpark=no' is overridden by 'transfer=yes')
  429. ;
  430. canpark=yes
  431. ;
  432. ; Support call forward variable
  433. ;
  434. cancallforward=yes
  435. ;
  436. ; Whether or not to support Call Return (*69, if your dialplan doesn't
  437. ; catch this first)
  438. ;
  439. callreturn=yes
  440. ;
  441. ; Stutter dialtone support: If a mailbox is specified without a voicemail
  442. ; context, then when voicemail is received in a mailbox in the default
  443. ; voicemail context in voicemail.conf, taking the phone off hook will cause a
  444. ; stutter dialtone instead of a normal one.
  445. ;
  446. ; If a mailbox is specified *with* a voicemail context, the same will result
  447. ; if voicemail received in mailbox in the specified voicemail context.
  448. ;
  449. ; for default voicemail context, the example below is fine:
  450. ;
  451. ;mailbox=1234
  452. ;
  453. ; for any other voicemail context, the following will produce the stutter tone:
  454. ;
  455. ;mailbox=1234@context
  456. ;
  457. ; Enable echo cancellation
  458. ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
  459. ; actually set the number of taps of cancellation.
  460. ;
  461. ; Note that when setting the number of taps, the number 256 does not translate
  462. ; to 256 ms of echo cancellation. echocancel=256 means 256 / 8 = 32 ms.
  463. ;
  464. ; Note that if any of your DAHDI cards have hardware echo cancellers,
  465. ; then this setting only turns them on and off; numeric settings will
  466. ; be treated as "yes". There are no special settings required for
  467. ; hardware echo cancellers; when present and enabled in their kernel
  468. ; modules, they take precedence over the software echo canceller compiled
  469. ; into DAHDI automatically.
  470. ;
  471. ;
  472. echocancel=256
  473. ;
  474. ; Some DAHDI echo cancellers (software and hardware) support adjustable
  475. ; parameters; these parameters can be supplied as additional options to
  476. ; the 'echocancel' setting. Note that Asterisk does not attempt to
  477. ; validate the parameters or their values, so if you supply an invalid
  478. ; parameter you will not know the specific reason it failed without
  479. ; checking the kernel message log for the error(s) put there by DAHDI.
  480. ;
  481. ;echocancel=128,param1=32,param2=0,param3=14
  482. ;
  483. ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
  484. ; the circuit path is entirely TDM. You may, however, change this behavior
  485. ; by enabling the echo canceller during pure TDM bridging below.
  486. ;
  487. echocancelwhenbridged=yes
  488. ;
  489. ; In some cases, the echo canceller doesn't train quickly enough and there
  490. ; is echo at the beginning of the call. Enabling echo training will cause
  491. ; DAHDI to briefly mute the channel, send an impulse, and use the impulse
  492. ; response to pre-train the echo canceller so it can start out with a much
  493. ; closer idea of the actual echo. Value may be "yes", "no", or a number of
  494. ; milliseconds to delay before training (default = 400)
  495. ;
  496. ; WARNING: In some cases this option can make echo worse! If you are
  497. ; trying to debug an echo problem, it is worth checking to see if your echo
  498. ; is better with the option set to yes or no. Use whatever setting gives
  499. ; the best results.
  500. ;
  501. ; Note that these parameters do not apply to hardware echo cancellers.
  502. ;
  503. ;echotraining=yes
  504. ;echotraining=800
  505. ;
  506. ; If you are having trouble with DTMF detection, you can relax the DTMF
  507. ; detection parameters. Relaxing them may make the DTMF detector more likely
  508. ; to have "talkoff" where DTMF is detected when it shouldn't be.
  509. ;
  510. ;relaxdtmf=yes
  511. ;
  512. ; You may also set the default receive and transmit gains (in dB)
  513. ;
  514. ; Gain Settings: increasing / decreasing the volume level on a channel.
  515. ; The values are in db (decibells). A positive number
  516. ; increases the volume level on a channel, and a
  517. ; negavive value decreases volume level.
  518. ;
  519. ; There are several independent gain settings:
  520. ; rxgain: gain for the rx (receive - into Asterisk) channel. Default: 0.0
  521. ; txgain: gain for the tx (transmit - out of Asterisk Asterisk) channel.
  522. ; Default: 0.0
  523. ; cid_rxgain: set the gain just for the caller ID sounds Asterisk
  524. ; emits. Default: 5.0 .
  525.  
  526. rxgain=0.0
  527. txgain=0.0
  528. ;
  529. ; Logical groups can be assigned to allow outgoing roll-over. Groups range
  530. ; from 0 to 63, and multiple groups can be specified. By default the
  531. ; channel is not a member of any group.
  532. ;
  533. ; Note that an explicit empty value for 'group' is invalid, and will not
  534. ; override a previous non-empty one. The same applies to callgroup and
  535. ; pickupgroup as well.
  536. ;
  537. group=1
  538. ;
  539. ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing
  540. ; and it is a member of a group which is one of your pickup groups, then
  541. ; you can answer it by picking up and dialing *8#. For simple offices, just
  542. ; make these both the same. Groups range from 0 to 63.
  543. ;
  544. callgroup=1
  545. pickupgroup=1
  546.  
  547. ; Channel variable to be set for all calls from this channel
  548. ;setvar=CHANNEL=42
  549.  
  550. ;
  551. ; Specify whether the channel should be answered immediately or if the simple
  552. ; switch should provide dialtone, read digits, etc.
  553. ; Note: If immediate=yes the dialplan execution will always start at extension
  554. ; 's' priority 1 regardless of the dialed number!
  555. ;
  556. ;immediate=yes
  557. ;
  558. ; Specify whether flash-hook transfers to 'busy' channels should complete or
  559. ; return to the caller performing the transfer (default is yes).
  560. ;
  561. ;transfertobusy=no
  562. ;
  563. ; caller ID can be set to "asreceived" or a specific number if you want to
  564. ; override it. Note that "asreceived" only applies to trunk interfaces.
  565. ; fullname sets just the
  566. ;
  567. ; fullname: sets just the name part.
  568. ; cid_number: sets just the number part:
  569. ;
  570. ;callerid = 123456
  571. ;
  572. ;callerid = My Name <2564286000>
  573. ; Which can also be written as:
  574. ;cid_number = 2564286000
  575. ;fullname = My Name
  576. ;
  577. ;callerid = asreceived
  578. ;
  579. ; should we use the caller ID from incoming call on DAHDI transfer?
  580. ;
  581. ;useincomingcalleridondahditransfer = yes
  582. ;
  583. ; AMA flags affects the recording of Call Detail Records. If specified
  584. ; it may be 'default', 'omit', 'billing', or 'documentation'.
  585. ;
  586. ;amaflags=default
  587. ;
  588. ; Channels may be associated with an account code to ease
  589. ; billing
  590. ;
  591. ;accountcode=lss0101
  592. ;
  593. ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
  594. ; basis if you have (or may have) ADSI compatible CPE equipment
  595. ;
  596. ;adsi=yes
  597. ;
  598. ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel
  599. ; basis if you would like that channel to behave like an SMDI message desk.
  600. ; The SMDI port specified should have already been defined in smdi.conf. The
  601. ; default port is /dev/ttyS0.
  602. ;
  603. ;usesmdi=yes
  604. ;smdiport=/dev/ttyS0
  605. ;
  606. ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
  607. ; etc, it can be useful to perform busy detection either in an effort to
  608. ; detect hangup or for detecting busies. This enables listening for
  609. ; the beep-beep busy pattern.
  610. ;
  611. ;busydetect=yes
  612. ;
  613. ; If busydetect is enabled, it is also possible to specify how many busy tones
  614. ; to wait for before hanging up. The default is 3, but it might be
  615. ; safer to set to 6 or even 8. Mind that the higher the number, the more
  616. ; time that will be needed to hangup a channel, but lowers the probability
  617. ; that you will get random hangups.
  618. ;
  619. ;busycount=6
  620. ;
  621. ; If busydetect is enabled, it is also possible to specify the cadence of your
  622. ; busy signal. In many countries, it is 500msec on, 500msec off. Without
  623. ; busypattern specified, we'll accept any regular sound-silence pattern that
  624. ; repeats <busycount> times as a busy signal. If you specify busypattern,
  625. ; then we'll further check the length of the sound (tone) and silence, which
  626. ; will further reduce the chance of a false positive.
  627. ;
  628. ;busypattern=500,500
  629. ;
  630. ; NOTE: In make menuselect, you'll find further options to tweak the busy
  631. ; detector. If your country has a busy tone with the same length tone and
  632. ; silence (as many countries do), consider enabling the
  633. ; BUSYDETECT_COMPARE_TONE_AND_SILENCE option.
  634. ;
  635. ; To further detect which hangup tone your telco provider is sending, it is
  636. ; useful to use the ztmonitor utility to record the audio that main/dsp.c
  637. ; is receiving after the caller hangs up.
  638. ;
  639. ; Use a polarity reversal to mark when a outgoing call is answered by the
  640. ; remote party.
  641. ;
  642. ;answeronpolarityswitch=yes
  643. ;
  644. ; In some countries, a polarity reversal is used to signal the disconnect of a
  645. ; phone line. If the hanguponpolarityswitch option is selected, the call will
  646. ; be considered "hung up" on a polarity reversal.
  647. ;
  648. ;hanguponpolarityswitch=yes
  649. ;
  650. ; polarityonanswerdelay: minimal time period (ms) between the answer
  651. ; polarity switch and hangup polarity switch.
  652. ; (default: 600ms)
  653. ;
  654. ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
  655. ; of a call through RINGING, BUSY, and ANSWERING. If turned on, call
  656. ; progress attempts to determine answer, busy, and ringing on phone lines.
  657. ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
  658. ; so don't count on it being very accurate.
  659. ;
  660. ; Few zones are supported at the time of this writing, but may be selected
  661. ; with "progzone".
  662. ;
  663. ; progzone also affects the pattern used for buzydetect (unless
  664. ; busypattern is set explicitly). The possible values are:
  665. ; us (default)
  666. ; ca (alias for 'us')
  667. ; cr (Costa Rica)
  668. ; br (Brazil, alias for 'cr')
  669. ; uk
  670. ;
  671. ; This feature can also easily detect false hangups. The symptoms of this is
  672. ; being disconnected in the middle of a call for no reason.
  673. ;
  674. ;callprogress=yes
  675. ;progzone=uk
  676. ;
  677. ; Set the tonezone. Equivalent of the defaultzone settings in
  678. ; /etc/dahdi/system.conf. This sets the tone zone by number.
  679. ; Note that you'd still need to load tonezones (loadzone in
  680. ; /etc/dahdi/system.conf).
  681. ; The default is -1: not to set anything.
  682. ;tonezone = 0 ; 0 is US
  683. ;
  684. ; FXO (FXS signalled) devices must have a timeout to determine if there was a
  685. ; hangup before the line was answered. This value can be tweaked to shorten
  686. ; how long it takes before DAHDI considers a non-ringing line to have hungup.
  687. ;
  688. ; ringtimeout will not update on a reload.
  689. ;
  690. ;ringtimeout=8000
  691. ;
  692. ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
  693. ; Pulse digits from phones (FXS devices, FXO signalling) are always
  694. ; detected.
  695. ;
  696. ;pulsedial=yes
  697. ;
  698. ; For fax detection, uncomment one of the following lines. The default is *OFF*
  699. ;
  700. ;faxdetect=both
  701. ;faxdetect=incoming
  702. ;faxdetect=outgoing
  703. ;faxdetect=no
  704. ;
  705. ; This option specifies a preference for which music on hold class this channel
  706. ; should listen to when put on hold if the music class has not been set on the
  707. ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
  708. ; channel putting this one on hold did not suggest a music class.
  709. ;
  710. ; If this option is set to "passthrough", then the hold message will always be
  711. ; passed through as signalling instead of generating hold music locally. This
  712. ; setting is only valid when used on a channel that uses digital signalling.
  713. ;
  714. ; This option may be set globally or on a per-channel basis.
  715. ;
  716. ;mohinterpret=default
  717. ;
  718. ; This option specifies which music on hold class to suggest to the peer channel
  719. ; when this channel places the peer on hold. This option may be set globally,
  720. ; or on a per-channel basis.
  721. ;
  722. ;mohsuggest=default
  723. ;
  724. ; PRI channels can have an idle extension and a minunused number. So long as
  725. ; at least "minunused" channels are idle, chan_dahdi will try to call "idledial"
  726. ; on them, and then dump them into the PBX in the "idleext" extension (which
  727. ; is of the form exten@context). When channels are needed the "idle" calls
  728. ; are disconnected (so long as there are at least "minidle" calls still
  729. ; running, of course) to make more channels available. The primary use of
  730. ; this is to create a dynamic service, where idle channels are bundled through
  731. ; multilink PPP, thus more efficiently utilizing combined voice/data services
  732. ; than conventional fixed mappings/muxings.
  733. ;
  734. ; Those settings cannot be changed on reload.
  735. ;
  736. ;idledial=6999
  737. ;idleext=6999@dialout
  738. ;minunused=2
  739. ;minidle=1
  740. ;
  741. ; Configure jitter buffers in DAHDI (each one is 20ms, default is 4)
  742. ; This is set globally, rather than per-channel.
  743. ;
  744. ;jitterbuffers=4
  745. ;
  746. ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
  747. ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  748. ; DAHDI channel. Defaults to "no". An enabled jitterbuffer will
  749. ; be used only if the sending side can create and the receiving
  750. ; side can not accept jitter. The DAHDI channel can't accept jitter,
  751. ; thus an enabled jitterbuffer on the receive DAHDI side will always
  752. ; be used if the sending side can create jitter.
  753.  
  754. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  755.  
  756. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  757. ; resynchronized. Useful to improve the quality of the voice, with
  758. ; big jumps in/broken timestamps, usually sent from exotic devices
  759. ; and programs. Defaults to 1000.
  760.  
  761. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a DAHDI
  762. ; channel. Two implementations are currently available - "fixed"
  763. ; (with size always equals to jbmax-size) and "adaptive" (with
  764. ; variable size, actually the new jb of IAX2). Defaults to fixed.
  765.  
  766. ; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
  767. ; The option represents the number of milliseconds by which the new
  768. ; jitter buffer will pad its size. the default is 40, so without
  769. ; modification, the new jitter buffer will set its size to the jitter
  770. ; value plus 40 milliseconds. increasing this value may help if your
  771. ; network normally has low jitter, but occasionally has spikes.
  772.  
  773. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  774. ;-----------------------------------------------------------------------------------
  775. ;
  776. ; You can define your own custom ring cadences here. You can define up to 8
  777. ; pairs. If the silence is negative, it indicates where the caller ID spill is
  778. ; to be placed. Also, if you define any custom cadences, the default cadences
  779. ; will be turned off.
  780. ;
  781. ; This setting is global, rather than per-channel. It will not update on
  782. ; a reload.
  783. ;
  784. ; Syntax is: cadence=ring,silence[,ring,silence[...]]
  785. ;
  786. ; These are the default cadences:
  787. ;
  788. ;cadence=125,125,2000,-4000
  789. ;cadence=250,250,500,1000,250,250,500,-4000
  790. ;cadence=125,125,125,125,125,-4000
  791. ;cadence=1000,500,2500,-5000
  792. ;
  793. ; Each channel consists of the channel number or range. It inherits the
  794. ; parameters that were specified above its declaration.
  795. ;
  796. ; For GR-303, CRV's are created like channels except they must start with the
  797. ; trunk group followed by a colon, e.g.:
  798. ;
  799. ; crv => 1:1
  800. ; crv => 2:1-2,5-8
  801. ;
  802. ;
  803. ;callerid="Green Phone"<(256) 428-6121>
  804. ;channel => 1
  805. ;callerid="Black Phone"<(256) 428-6122>
  806. ;channel => 2
  807. ;callerid="CallerID Phone" <(630) 372-1564>
  808. ;channel => 3
  809. ;callerid="Pac Tel Phone" <(256) 428-6124>
  810. ;channel => 4
  811. ;callerid="Uniden Dead" <(256) 428-6125>
  812. ;channel => 5
  813. ;callerid="Cortelco 2500" <(256) 428-6126>
  814. ;channel => 6
  815. ;callerid="Main TA 750" <(256) 428-6127>
  816. ;channel => 44
  817. ;
  818. ; For example, maybe we have some other channels which start out in a
  819. ; different context and use E & M signalling instead.
  820. ;
  821. ;context=remote
  822. ;signaling=em
  823. ;channel => 15
  824. ;channel => 16
  825.  
  826. ;signalling=em_w
  827. ;
  828. ; All those in group 0 I'll use for outgoing calls
  829. ;
  830. ; Strip most significant digit (9) before sending
  831. ;
  832. ;stripmsd=1
  833. ;callerid=asreceived
  834. ;group=0
  835. ;signalling=fxs_ls
  836. ;channel => 45
  837.  
  838. ;signalling=fxo_ls
  839. ;group=1
  840. ;callerid="Joe Schmoe" <(256) 428-6131>
  841. ;channel => 25
  842. ;callerid="Megan May" <(256) 428-6132>
  843. ;channel => 26
  844. ;callerid="Suzy Queue" <(256) 428-6233>
  845. ;channel => 27
  846. ;callerid="Larry Moe" <(256) 428-6234>
  847. ;channel => 28
  848. ;
  849. ; Sample PRI (CPE) config: Specify the switchtype, the signalling as either
  850. ; pri_cpe or pri_net for CPE or Network termination, and generally you will
  851. ; want to create a single "group" for all channels of the PRI.
  852. ;
  853. ; switchtype cannot be changed on a reload.
  854. ;
  855. ; switchtype = national
  856. ; signalling = pri_cpe
  857. ; group = 2
  858. ; channel => 1-23
  859.  
  860. ;
  861.  
  862. ; Used for distinctive ring support for x100p.
  863. ; You can see the dringX patterns is to set any one of the dringXcontext fields
  864. ; and they will be printed on the console when an inbound call comes in.
  865. ;
  866. ; dringXrange is used to change the acceptable ranges for "tone offsets". Defaults to 10.
  867. ; Note: a range of 0 is NOT what you might expect - it instead forces it to the default.
  868. ; A range of -1 will force it to always match.
  869. ; Anything lower than -1 would presumably cause it to never match.
  870. ;
  871. ;dring1=95,0,0
  872. ;dring1context=internal1
  873. ;dring1range=10
  874. ;dring2=325,95,0
  875. ;dring2context=internal2
  876. ;dring2range=10
  877. ; If no pattern is matched here is where we go.
  878. ;context=default
  879. ;channel => 1
  880.  
  881. ; ---------------- Options for use with signalling=ss7 -----------------
  882. ; None of them can be changed by a reload.
  883. ;
  884. ; Variant of SS7 signalling:
  885. ; Options are itu and ansi
  886. ;ss7type = itu
  887.  
  888. ; SS7 Called Nature of Address Indicator
  889. ;
  890. ; unknown: Unknown
  891. ; subscriber: Subscriber
  892. ; national: National
  893. ; international: International
  894. ; dynamic: Dynamically selects the appropriate dialplan
  895. ;
  896. ;ss7_called_nai=dynamic
  897. ;
  898. ; SS7 Calling Nature of Address Indicator
  899. ;
  900. ; unknown: Unknown
  901. ; subscriber: Subscriber
  902. ; national: National
  903. ; international: International
  904. ; dynamic: Dynamically selects the appropriate dialplan
  905. ;
  906. ;ss7_calling_nai=dynamic
  907. ;
  908. ;
  909. ; sample 1 for Germany
  910. ;ss7_internationalprefix = 00
  911. ;ss7_nationalprefix = 0
  912. ;ss7_subscriberprefix =
  913. ;ss7_unknownprefix =
  914. ;
  915.  
  916. ; This option is used to disable automatic sending of ACM when the call is started
  917. ; in the dialplan. If you do use this option, you will need to use the Proceeding()
  918. ; application in the dialplan to send ACM.
  919. ;ss7_explictacm=yes
  920.  
  921. ; All settings apply to linkset 1
  922. ;linkset = 1
  923.  
  924. ; Point code of the linkset. For ITU, this is the decimal number
  925. ; format of the point code. For ANSI, this can either be in decimal
  926. ; number format or in the xxx-xxx-xxx format
  927. ;pointcode = 1
  928.  
  929. ; Point code of node adjacent to this signalling link (Possibly the STP between you and
  930. ; your destination). Point code format follows the same rules as above.
  931. ;adjpointcode = 2
  932.  
  933. ; Default point code that you would like to assign to outgoing messages (in case of
  934. ; routing through STPs, or using A links). Point code format follows the same rules
  935. ; as above.
  936. ;defaultdpc = 3
  937.  
  938. ; Begin CIC (Circuit indication codes) count with this number
  939. ;cicbeginswith = 1
  940.  
  941. ; What the MTP3 network indicator bits should be set to. Choices are
  942. ; national, national_spare, international, international_spare
  943. ;networkindicator=international
  944.  
  945. ; First signalling channel
  946. ;sigchan = 48
  947.  
  948. ; Additional signalling channel for this linkset (So you can have a linkset
  949. ; with two signalling links in it). It seems like a silly way to do it, but
  950. ; for linksets with multiple signalling links, you add an additional sigchan
  951. ; line for every additional signalling link on the linkset.
  952. ;sigchan = 96
  953.  
  954. ; Channels to associate with CICs on this linkset
  955. ;channel = 25-47
  956. ;
  957. ; For more information on setting up SS7, see the README file in libss7 or
  958. ; the doc/ss7.txt file in the Asterisk source tree.
  959. ; ----------------- SS7 Options ----------------------------------------
  960. #include dahdi-channels.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement