My setup looks like this:
[color=red](PSTN -> Asterisk -> Alcatel) as well as (PSTN <- Asterisk <- Alcatel)[/color]
I am using a Dual port Digium E1 card where one port is connected to the PSTN and the other to the Alcatel PBX
The calls coming in from the PTSN get through to the PBX with no problem but i am having a problem trying to get calls out to the PSTN from the PBX.
The idea is to monitor the outgoing calls and re-route the national calls over Voip instead of the PSTN, but first i need to get the calls from the PBX to go out to the PSTN
When i watch the traffic live it seems that asterisk is only getting some of the digits coming in form the PBX (mostly 2 or 3), where the number of digits should be 7 for local calls and 10 for national calls
I also have sip soft phone set up that works fine to make calls out to the PSTN
Note: The PBX is using LCR to route all cellular calls to a GSM Gateway that is connected directly to a PRI card on the PBX
I am including my config’s
My Zaptel config:
[color=blue][Zaptel.conf]
loadzone = za
defaultzone = za
span=1,0,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16
span=2,0,0,ccs,hdb3,crc4
bchan=32-46,48-62
dchan=47[/color]
My Dialplan:
[color=blue][general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
[from-internal]
include => apps
include => out-bound
[apps]
exten => *43,1,Answer
exten => *43,n,Wait(1)
exten => *43,n,Playback(demo-echotest)
exten => *43,n,Echo()
exten => *43,n,Playback(demo-echotest)
exten => *43,n,Hangup
[out-bound]
exten => _.,1,Dial(Zap/g0/${EXTEN})
[from-telkom]
exten => s,1,Answer()
exten => s,2,WaitExten(1)
exten => _X.,1,Dial(Zap/g1/${EXTEN})
exten => _X.,2,Playback(vm-nobodyavail)
exten => _X.,3,Hangup()
[from-pbx]
exten => s,1,Answer()
exten => _X.,1,Dial(Zap/g0/${EXTEN})
exten => _X.,2,Playback(vm-nobodyavail)
exten => _X.,3,Hangup()[/color]
My Zapata config
[color=blue][Zapata.conf]
language=en
context=from-telkom
switchtype=euroisdn
pridialplan=local
prilocaldialplan=local
overlapdial=no
signalling=pri_cpe
facilityenable=yes
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
callpark=yes
cancallforward=yes
callreturn=yes
echocancel=128
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
immediate=no
transfertobusy=yes
callerid=asreceived
amaflags=billing
adsi=yes
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
musiconhold=default
faxdetect=incoming
busydetect=yes
busycount=2
busypattern=2500,500
callprogress=no
channel => 1-15,17-31
language=en
context=from-pbx
switchtype=euroisdn
pridialplan=local
prilocaldialplan=local
overlapdial=no
signalling=pri_net
facilityenable=yes
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
callpark=yes
cancallforward=yes
callreturn=yes
echocancel=128
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=1
immediate=no
transfertobusy=yes
callerid=asreceived
amaflags=billing
adsi=yes
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
musiconhold=default
busydetect=yes
busycount=2
busypattern=2500,500
callprogress=no
channel => 32-46,48-62[/color]
My sip config:
[color=blue][Sip.Conf]
[general]
port=5060
bind=0.0.0.0
disallow=all
allow=ulaw
allow=alaw
context=from-sip-external
callerid=unknown
[2000]
username=2000
type=friend
secret=1234
qualify=no
port=5060
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=2000[/color]