I use an X101P card in my system. You will need to setup a context something like this to handle incoming calls in your extensions.conf. My setup calls this context [incoming]
[incoming]
exten => s,1,Wait,20 ; Wait 20 seconds
;
;exten => s,1,Answer() ; or this will answer immediately…but I give
; myself a few seconds to answer the call if I’m in the other room
; with only a regular analog phone plugged into the wall jack.
exten => s,n,Answer() ; Answer the call
exten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => s,n,Set(TIMEOUT(response)=7) ; Set Response Timeout to 10 seconds
exten => s,n(restart),BackGround(my_welcome_msg) ; Play the initial welsome message
exten => s,n,WaitExten(7) ; Wait for an extension to be dialed.
exten => s,n,Voicemail(2000@default,u) ; Send Caller to Voicemail
Then to dial out you will need something like this. My system is set so my IP phones dial 9 to use the outside PSTN lines. Otherwise I have other contexts to handle VOIP calls through my various providers.
[outbound-local]
exten => _9NXXNXXXXXX,1,Set(CALLERID(all)=${MCallerID})
exten => _9NXXNXXXXXX,n,Dial(Zap/1/${EXTEN:1})
exten => _9NXXNXXXXXX,n,Congestion()
exten => _9NXXNXXXXXX,102,Congestion()
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 911 EMERGENCY EXTENSIONS ON OUTBOUNDLOCAL
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
exten => 911,1,Dial(Zap/1/911)
exten => 9911,1,Dial(Zap/1/911)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[outbound-long-distance]
exten => _91NXXNXXXXXX,1,Set(CALLERID(all)=${MCallerID})
exten => _91NXXNXXXXXX,n,Dial(Zap/1/${EXTEN:1})
exten => _91NXXNXXXXXX,n,Congestion()
exten => _91NXXNXXXXXX,102,Congestion()
You will also need to configure your zaptel.conf something like this:
fxsks=1
loadzone=us
defaultzone=us
If I were you I read up some more on this in the Asterisk TFOT manual. It’s not that hard to follow along and in no time you’ll be able to dial through your asterisk server using the PSTN lines and your incoming calls on your PSTN line will be handled by your asterisk server, which is a very good thing for voicemail, conference rooms, or just playing around and making your friends think you spent a bundle on your phone system.