Analog phone Zap problem

I’ve got 1 SIP phone (Aastra) and 1 Sangoma Analog card with 2 port FXS and 2 port FXO cards in it.

I’ve got it so that my SIP phone can call the analog one fine, and conversations can be made. But trying to call from the analog phone asterisk immediately hangs up on the Zap channel. Verbose output when trying this isn’t really helpful:-


Asterisk Ready.
– Starting simple switch on ‘Zap/4-1’
– Hungup ‘Zap/4-1’

/etc/zapta.conf:-

Autogenerated by /usr/local/sbin/sangoma/setup-sangoma – do not hand edit

Zaptel Channels Configurations (zaptel.conf)

loadzone=uk
defaultzone=uk

#Sangoma A200 [slot:3 bus:0 span:1]
fxsks=1
fxsks=2
fxoks=3
fxoks=4

/etc/asterisk/zapata.conf

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
hanguponpolarityswitch=no
group=1
callgroup=1
pickupgroup=1

immediate=no

;Sangoma A200 [slot:3 bus:0 span:1]
context=from-zaptel
group=0
signalling = fxs_ks
channel => 1

context=from-zaptel
group=0
signalling = fxs_ks
channel => 2

context=from-internal
group=1
signalling = fxo_ks
channel => 3

context=incoming
group=1
signalling = fxo_ks
channel => 4

/etc/asterisk/sip.conf:-

[general]
context=internal
bindaddr=0.0.0.0
disallow=all
allow=ulaw
allow=alaw

[100]
type=friend
canreinvite=no
qualify=yes
username=100
secret=xxxxxx
host=dynamic
context=internal
dtmfmode=rfc2833
callgroup=1
pickupgroup=1

/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
;
[globals]
E100=SIP/100
;
[internal]
;
exten => 100,1,Dial(${E100},20,r)
exten => 102,1,Dial(Zap/4)

asterisk is Asterisk 1.2.16
zaptel-1.2.15
wanpipe-2.3.4-7

all compiled from source.

Any ideas anybody, I’ve googled and searched the forums but got nowhere with it ;(

Rgds

Pete

[quote=“barnwep”]context=incoming
group=1
signalling = fxo_ks
channel => 4
[/quote]is this a typo ? do you have an incoming context ?

Sorry - cut a different version of the zapata.conf (tried a lot of fiddling): it should read internal, not incoming. (I get different error, complaining about a non-existant context with incoming in it!)