[Asterisk-Users] DevKit Lite Questions/issues

Doug Jaworski doug at cagemonkey.com
Sun Feb 20 21:07:42 MST 2005


I am having some issues with the configuration with the DevKit Lite
It is not clear as to whether the configuration files are empty to start 
with or appended to.

Files in question are:
/etc/asterisk/zapata.conf
/etc/asterisk/extensions.conf

Your assistance is appreciated.

Thanks,
Doug

Q.    I just recieved my DevKit Lite. What should I do now, and can you 
please show me?
A.    Here is step by step guide:
a) Go into /usr/src directory on your linux box
 > cd /usr/src

b) Download the latest CVS release of zaptel,asterisk packages
 > export CVSROOT=:pserver:anoncvs at cvs.digium.com:/usr/cvsroot
 > cvs login (password is anoncvs)
 > cvs checkout zaptel asterisk

c) Compile all the packages in this order: zaptel/asterisk
 > cd /usr/src/zaptel; make install;
 > cd ../asterisk
 > make install
 > make samples

d) Edit configuration files and make sure they have at least these 
lines: /etc/zaptel.conf
fxsks=1 #X100P
fxoks=2 #S100U
defaultzone=us
loadzone=us

/etc/asterisk/zapata.conf
[channels]
signalling=fxs_ks
context=incoming
channel=>1 ;X100P
context=internal
signalling=fxo_ks
channel=>2 ;S100U

/etc/asterisk/extensions.conf
[incoming]
exten => s,1,Dial,Zap/2|20
exten => s,2,Voicemail,u1000
exten => s,102,Voicemail,b1000

[outgoing]
;this extension is for dialing out local numbers
;the number starts with the 9 digit and is 7 digits long
exten => _9NXXXXXX,1,Dial,Zap/1/${EXTEN:1}
;this extensions is for dialing out long distance numbers
;the number starts with the 91 digits and is 10 digits long
exten => _91NXXNXXXXXX,1,Dial,Zap/1/${EXTEN:1}
;this extension is for dialing out international numbers
;the number starts with 9011 and is at least 4 digits long
exten => _9011.,1,Dial,Zap/1/${EXTEN:1}
;this extension is for checking voicemaill
;don't ask for voicemail number and password
exten => 8500,1,VoiceMailMain,s1000

/etc/asterisk/voicemail.conf
[general]
format=gsm|wav49|wav
maxmessage=180
[incoming]
1000 => 1000,Example Mailbox

e) load the apropriate modules
 > modprobe zaptel
 > modprobe wcfxo *
 > modprobe wcusb
 > ztcfg -vv **
* Note that you might have errors after "modprobe wcfxo" because in the 
file /etc/modules.conf there are lines like that: post-install wcfxo 
/sbin/ztcfg These lines load zaptel configuration program right after 
every "modprobe driver" command. So if you configured more than one 
device (X100 and S100U) you're going to have error message after loading 
"modprobe wcfxo". That's normal.

** If you have errors after you executed all four lines then it's 
propable that your system loaded "audio" module for S100U. This module 
is a USB sound card module and you have to unload it by executing "rmmod 
audio". After that execute one more time "ztcfg -vv" to be sure that 
everything is OK.

**2 The problem may be that you don't have a USB controller support 
turned on on your motherboard or USB support is not properly configured. 
Check if you have any entry of USB controller in /proc/pci system file. 
Also check if the USB controller driver is loaded in the kernel (lsmod). 
You should have one of these drivers loaded: usb-uhci,uhci,ohci. If you 
don't have it loaded you may try to load it using modprobe command, eg:
 >modprobe usb-uhci
After the proper module is loaded when you plug in/out the S100U you 
should see some messages poping up on the console. If no messages pop up 
then remove the driver and try another one, eg: >rmmod usb-uhci; 
modprobe uhci
If that doesn't work you propably need to compile your own kernel with 
USB support or download a diffrent linux distribution.

Note also that if you "make configs" in the zaptel sources than there 
will be installed boot-up script to handle modprobing drivers for you.

f) Now that everything is installed properly run
 > asterisk -vvvc
You may dial in now to the analog phone line connected to X100P and you 
should be able to connect to the phone connect to S100U. You should also 
be able to dial out through the phone connected to S100U by dialing out 
9 + number (for US local calls) or 91 + area + number (for US long 
distance calls) or 9011 + country code + area code + number (for 
international calls) When you dial 8500 you'll be able to check your 
voce mail box.




More information about the asterisk-users mailing list