I am certainly very new here, and I’m reading a ton of stuff at voip-info.org and elsewhere. But I’m having trouble getting started on the learning curve. I think with a few hints getting to a point where I can begin experimenting, this will become a lot more clear.
I’ve setup a Linux system. It’s Debian Testing. I put kernel 126.96.36.199 on there and compiled it and booted off that. I apt-get install’d all the asterisk, zaptel, and libpri dependancies, then dowloaded the asterisk, zaptel, and libpri source from cvs. Compiled and installed them, in the correct order, made samples, … I think I’m just about good to go
I put in a TDM22B (2 FXO, 2 FXS) and modprobed zaptel, then wctdm. lspci shows my card detected correctly and dmesg output after modprobe’ing looks good too.
I connected a phone to the FXS, and a line to the PSTN to the FXO. I picked up the phone and dialed 500 and heard a voice menu and then got connected to Digium. (very cool.)
So… now… on to the real config and I’m a bit lost.
loadzone = us
Just to get started, I need help with the extensions.conf.
I’d like to have the incoming POTS line go through Asterisk and ring both FXS extensions
when a call comes in. So far, I haven’t been able to do that.
In /etc/asterisk/extensions.conf, in addition to the global and default stuff, I set up:
exten => s,1,Wait,1
exten => s,n,Answer
exten => s,n,Dial(Zap/1)
I know I must be missing something (or several things). When an incoming call comes in, asterisk doesn’t answer it and doesn’t pass it on to the phone connected to the first port on the TDM400 card.
Can someone offer a basic extensions.conf that would accomplish something like this? I’d really appreciate it, and I think once I can get a trivial case working I should be able to figure a lot more out.