Inbound and Outbound Zaptel failures

Hi guys,

I have a 4 port TE410p setup. ztcfg lists 124 active channels, it is plugged into the wall-unit via a cat5 cable and the light is green, 3 are red. This seems to be fine.

The DID of the line is 01225312000 when I dial this I recieve a :

– Extension ‘2000’ in context ‘zap-in’ from ‘’ does not exist. Rejecting call on channel 0/1, span 1

I have a Zap trunk setup, and the identifier is ‘1’.

I have an inbound route setup so that it forwards ANY did/cid to ext 100.

[code]span=1,0,0,ccs,hdb3,crc4,yellow
span=2,0,0,ccs,hdb3,crc4,yellow
span=3,0,0,ccs,hdb3,crc4,yellow
span=4,0,0,ccs,hdb3,crc4,yellow

bchan = 1-15, 17-31
dchan = 16
bchan = 32-46,48-62
dchan = 47
bchan = 63-77,79-93
dchan = 78
bchan = 94-108,110-124
dchan = 109

loadzone = uk
defaultzone = uk[/code]

[code]
[channels]
context=zap-in
switchtype=euroisdn
pridialplan=national
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
rxgain=0.0
txgain=0.0

group=1
callgroup=1
pickupgroup=1

immediate=no
callprogress=no

callerid=asreceived
group=1
signalling=pri_cpe
channel => 1-15,17-31

group=2
signalling=pri_cpe
channel => 32-46,48-62

group=3
signalling=pri_cpe
channel => 63-77,79-93

group=4
signalling=pri_cpe
channel => 94-108,110-124[/code]

I can’t for the life of me work out why that inbound number will not route to my 100 extension, any ideas guys? Im ripping my hair out, (whats left).

what does [zap-in] context in extensions.conf look like ?

Funnily enough, I just looked. There was nothing, yet I’m using FreePBX to define routes etc…

I added

[zap-in]
exten => 2000,1,Dial(‘SIP/100’)

and it calls in fine, why does this not get generated by FreePBX :frowning: Does this mean i have to edit the conf every time I want the 2000 did to call a different group etc?

i’ve configured AMP (pre-FreePBX) and FreePBX … and hated the configs it generated. unless you really want a GUI, try your hand at manual configs … IMO so much easier, you know what’s going on and your logs are a fraction of their FreePBX size.

it sounds as if you’ve missed something in the GUI … i can’t believe something as fundamental as this would be broken.

I changed in zapata.conf context=zap-in to from-pstn which was in the extensions.conf and voila, works fine. Weird!