This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
voice:pbx:dahdi [2011/11/08 12:21] gcooper created |
voice:pbx:dahdi [2015/10/14 12:44] (current) gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
DAHDI was previously ' | DAHDI was previously ' | ||
+ | ===== Configuration ===== | ||
+ | |||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | # Autogenerated by / | ||
+ | # If you edit this file and execute / | ||
+ | # your manual changes will be LOST. | ||
+ | # Dahdi Configuration File | ||
+ | # | ||
+ | # This file is parsed by the Dahdi Configurator, | ||
+ | # | ||
+ | # Span 1: WCTDM/0 " | ||
+ | fxsks=1 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=2 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=3 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=4 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=5 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=6 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=7 | ||
+ | echocanceller=mg2, | ||
+ | fxsks=8 | ||
+ | echocanceller=mg2, | ||
+ | |||
+ | # Global data | ||
+ | |||
+ | loadzone = us | ||
+ | defaultzone = us | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | [G0] | ||
+ | qualify=no | ||
+ | nat=no | ||
+ | context=from-outside | ||
+ | type=friend | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ''/ | ||
+ | |||
+ | < | ||
+ | ; Autogenerated by / | ||
+ | ; If you edit this file and execute / | ||
+ | ; your manual changes will be LOST. | ||
+ | ; Dahdi Channels Configurations (chan_dahdi.conf) | ||
+ | ; | ||
+ | ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended | ||
+ | ; to be #include-d by / | ||
+ | ; | ||
+ | |||
+ | ; Span 1: WCTDM/0 " | ||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=0 | ||
+ | context=from-outside | ||
+ | channel => 1 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=0 | ||
+ | context=from-outside | ||
+ | channel => 2 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=0 | ||
+ | context=from-outside | ||
+ | channel => 3 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 4 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 5 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 6 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 7 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | |||
+ | ;;; line=" | ||
+ | signalling=fxs_ks | ||
+ | callerid=asreceived | ||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 8 | ||
+ | callerid= | ||
+ | group= | ||
+ | context=default | ||
+ | </ | ||
+ | |||
+ | ===== Old Zaptel (Pre-DAHDI) Info ===== | ||
+ | |||
+ | Recompile Zaptel Modules After Installation or After a Kernel Upgrade | ||
+ | |||
+ | Reference for zaptel stuff is the Digium Users Manual for the card you have. | ||
+ | |||
+ | < | ||
+ | vi / | ||
+ | |||
+ | </ | ||
+ | change line 56 - directory is 1.4.9.2 | ||
+ | |||
+ | < | ||
+ | rebuild_zaptel | ||
+ | </ | ||
+ | ---- | ||
+ | |||
+ | Or the manual way: | ||
+ | |||
+ | < | ||
+ | wget http:// | ||
+ | cd /usr/src | ||
+ | tar -zxvf zaptel-1.4.12.1.tar.gz | ||
+ | cd zaptel-1.4.12.1 | ||
+ | |||
+ | make clean | ||
+ | ./configure | ||
+ | make menuselect | ||
+ | </ | ||
+ | |||
+ | Enable the module you need for your card (wctdm24xxp for AEX800, wctdm for TDM400P) and the firmware needed by your card (VPMADT032 for EC module) and then save those changes. | ||
+ | |||
+ | < | ||
+ | make | ||
+ | make install | ||
+ | make config | ||
+ | </ | ||
+ | |||
+ | Use ' | ||
+ | |||
+ | Use / | ||
+ | |||
+ | < | ||
+ | # Span 1: WCTDM/0 " | ||
+ | fxsks=1 | ||
+ | fxsks=2 | ||
+ | fxsks=3 | ||
+ | fxsks=4 | ||
+ | fxsks=5 | ||
+ | fxsks=6 | ||
+ | fxsks=7 | ||
+ | fxsks=8 | ||
+ | |||
+ | # Global data | ||
+ | |||
+ | loadzone | ||
+ | defaultzone | ||
+ | </ | ||
+ | |||
+ | With Asterisk stopped, stop and start the zaptel drivers: | ||
+ | |||
+ | < | ||
+ | service zaptel stop | ||
+ | service zaptel start | ||
+ | </ | ||
+ | |||
+ | Verify channel configuration with: | ||
+ | < | ||
+ | ztcfg -vv | ||
+ | </ | ||
+ | |||
+ | Use ' | ||
+ | |||
+ | Edit / | ||
+ | |||
+ | < | ||
+ | [channels] | ||
+ | language=en | ||
+ | context=from-outside | ||
+ | switchtype=national | ||
+ | signalling=fxs_ks | ||
+ | usecallerid=yes | ||
+ | hidecallerid=no | ||
+ | callwaiting=yes | ||
+ | usecallingpres=yes | ||
+ | callwaitingcallerid=yes | ||
+ | threewaycalling=yes | ||
+ | transfer=yes | ||
+ | canpark=yes | ||
+ | cancallforward=yes | ||
+ | callreturn=yes | ||
+ | echocancel=yes | ||
+ | echocancelwhenbridged=yes | ||
+ | rxgain=0.0 | ||
+ | txgain=0.0 | ||
+ | callgroup=1 | ||
+ | pickupgroup=1 | ||
+ | immediate=no | ||
+ | |||
+ | group=1 | ||
+ | context=from-outside | ||
+ | channel => 1-8 #only include the channels that actually have phone lines connected | ||
+ | </ | ||
+ | |||
+ | ===== Performance Testing ===== | ||
+ | |||
+ | http:// | ||