Got SIP working.. but not zaptel

I’m getting the following 2 errors when I try and place a call out the zaptel (sip calls work just fine)

[Jan 21 13:50:43] WARNING[6380]: channel.c:3281 ast_request: No channel type registered for 'Zap'
[Jan 21 13:50:43] WARNING[6380]: app_dial.c:1191 dial_exec_full: Unable to create channel of type 'Zap' (cause 66 - Channel not implemented)

I have a TE122 hooked to a PRI off a hardware PBX

ztcfg -vv

Zaptel Version: 1.4.8
Echo Canceller: MG2
Configuration
======================

SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: Clear channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)

24 channels to configure.
cat zaptel.conf
# Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#

# It must be in the module loading order


# Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER)
span=1,1,0,esf,b8zs
# termtype: te
bchan=1-23
dchan=24

# Global data

loadzone        = us
defaultzone     = us

I’ve tried fxo_ls and pri_cpe

more zapata.conf
[channels]
context=remote
group=1
callgroup=1
signalling=fxo_ls
switchtype=national
context=incoming
channel=1-23
echocancel=yes

extensions.conf sections

[remote]
exten => 9427,1,Dial(SIP/travis)
exten => 3371,1,Dial(SIP/tim)
exten => 1234,1,Dial(SIP/dude)
exten => _8XXXXXXX.,1,Dial(${TRUNK}/$EXTEN:1)
exten => _8XXXXXXX.,2,Goto(102)
exten => _8XXXXXXX.,102,Congestion
exten => _8XXXXXXX.,103,Hangup

sip.conf sections

[travis]
type=friend
username=travis
secret=****
host=dynamic
context=remote

[tim]
type=friend
username=tim
secret=****
host=dynamic
context=remote

[dude]
type=friend
username=dude
secret=****
host=dynamic
context=remote

Did you compile Zaptel first and then enable it when coinfiguring Asterisk in menuselect? My guess is no or something else is up as Asterisk doesnt have the zap channel loaded.

Would that be why all the zap commands aren’t in the help menu? They were there originally but during all configuration (and re-configuration :smile: ) they disappeared.

When I do a make menuselect it ends with
Install ncurses to use the menu interface!
but ncurses is installed (normal and devel).
Would it have launched menuselect at this point or is there something else I have to do? I’m running centos if it matters.

Thanks!

hmm you got me on that one.

what does “yum info ncurses-devel” output?

That is is installed… come to find out a co-worked did a yum-update and updated everything post install. So I did a fresh install and realized I had 2 context’s in zapata.conf and that caused all the zap commands to not show up (not sure why… but I tested it :smile: and removing the extra context fixed it).