How to configure Digium TE133 and TE134 Single Span T1/E1 card in asterisk , Vicidial , Goautodial, vicidialnow ,osdial , AsteriskNow , Elastix.
The new digium TE133X cards wont have Jumpers to switch between E1 and T1, it can be configured via software itself.
The following Blog will instruct you on how to install Digium TE133 and TE134 in you asterisk as T1 or E1
The new Digium cards requires Latest DAHDI drivers , you can download the latest DAHDI and LIBPRI driver from the below link and follow below blog link for DAHDI upgrade or DAHDI reinstall
DAHDI : wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
LIBPRI : wget http://downloads.digium.com/pub/telephony/libpri/libpri-X.X.current.tar.gz
BLOG to reinstall dahdi : http://striker24x7.blogspot.com/2013/05/steps-to-reinstall-or-upgrade-dahdi.html
For E1 mode :
Step 1
Go to : /etc/modprobe.d/dahdi.conf (ie: vi /etc/modprobe.d/dahdi.conf)
And enter below line at last ,save and exit
options wcte13xp default_linemode=e1
Step 2
Run the below command as root
# modprobe wcte13xp default_linemode=e1
#dahdi_genconf -v
#dahdi_cfg -v (make sure the ouput should show 31 channels)
Note: dahdi_genconf will generate default configs for digium cards, if your pri CRC4 is disabled, then do the changes in /etc/dahdi/system.conf
Step 3
Now open /etc/asterisk/chan_dahdi.conf and add the below line at the last line (use shift+g to go to last line in putty)
#include dahdi-channels.conf
Step 4
Dialplan to dial via PRI
vi /etc/asterisk/extension.conf
[default] ; the default will already exists in most asterisk installation if not create a new
exten => _9X.,1,Dial(DAHDI/g0/${EXTEN:1},30)
exten => _9X.,2,Hangup()
Note: 9 is just a prefix, and it will be discarded while dialling out
Note: for vicidial /goautodial use below dialplan in dialplan entry or extensions.conf
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(DAHDI/g0/${EXTEN:1},,Tto)
exten => _9X.,3,Hangup
For T1 Mode:
Go to : /etc/modprobe.d/dahdi.conf (ie: vi /etc/modprobe.d/dahdi.conf)
And enter below line at last ,save and exit
options wcte13xp default_linemode=t1
Step 2
Run the below command as root
# modprobe wcte13xp default_linemode=t1
#dahdi_genconf -v
#dahdi_cfg -v (make sure the ouput should show 31 channels)
follow the above steps for the dialplan.
Troubleshoot
* make sure pri is up by typing below command in asterisk cli
dahdi show staus
pri show spans
* if the line is up and still not dialling then do the following changes in chan_dahdi.conf
pridialplan=unknown
prilocaldialplan=unknown
* incomming calls will land in from-pstn context ,
* to change the incomming context go to /etc/asterisk/dahdi-channels.conf and change from-pstn to what ever you want
* for vicidial put trunkinbound as inbound context.
The new digium TE133X cards wont have Jumpers to switch between E1 and T1, it can be configured via software itself.
The following Blog will instruct you on how to install Digium TE133 and TE134 in you asterisk as T1 or E1
The new Digium cards requires Latest DAHDI drivers , you can download the latest DAHDI and LIBPRI driver from the below link and follow below blog link for DAHDI upgrade or DAHDI reinstall
DAHDI : wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
LIBPRI : wget http://downloads.digium.com/pub/telephony/libpri/libpri-X.X.current.tar.gz
BLOG to reinstall dahdi : http://striker24x7.blogspot.com/2013/05/steps-to-reinstall-or-upgrade-dahdi.html
For E1 mode :
Step 1
Go to : /etc/modprobe.d/dahdi.conf (ie: vi /etc/modprobe.d/dahdi.conf)
And enter below line at last ,save and exit
options wcte13xp default_linemode=e1
Step 2
Run the below command as root
# modprobe wcte13xp default_linemode=e1
#dahdi_genconf -v
#dahdi_cfg -v (make sure the ouput should show 31 channels)
Note: dahdi_genconf will generate default configs for digium cards, if your pri CRC4 is disabled, then do the changes in /etc/dahdi/system.conf
Step 3
Now open /etc/asterisk/chan_dahdi.conf and add the below line at the last line (use shift+g to go to last line in putty)
#include dahdi-channels.conf
Step 4
Dialplan to dial via PRI
vi /etc/asterisk/extension.conf
[default] ; the default will already exists in most asterisk installation if not create a new
exten => _9X.,1,Dial(DAHDI/g0/${EXTEN:1},30)
exten => _9X.,2,Hangup()
Note: 9 is just a prefix, and it will be discarded while dialling out
Note: for vicidial /goautodial use below dialplan in dialplan entry or extensions.conf
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(DAHDI/g0/${EXTEN:1},,Tto)
exten => _9X.,3,Hangup
For T1 Mode:
Go to : /etc/modprobe.d/dahdi.conf (ie: vi /etc/modprobe.d/dahdi.conf)
And enter below line at last ,save and exit
options wcte13xp default_linemode=t1
Step 2
Run the below command as root
# modprobe wcte13xp default_linemode=t1
#dahdi_genconf -v
#dahdi_cfg -v (make sure the ouput should show 31 channels)
follow the above steps for the dialplan.
Troubleshoot
* make sure pri is up by typing below command in asterisk cli
dahdi show staus
pri show spans
* if the line is up and still not dialling then do the following changes in chan_dahdi.conf
pridialplan=unknown
prilocaldialplan=unknown
* incomming calls will land in from-pstn context ,
* to change the incomming context go to /etc/asterisk/dahdi-channels.conf and change from-pstn to what ever you want
* for vicidial put trunkinbound as inbound context.
No comments:
Post a Comment