TDM400P not recognized by Asterisk

in the asterisk cli here is what I get

zap show status

Description Alarms IRQ bpviol CRC4
Wildcard TDM400P REV I Board 1 OK 0 0 0

root@Zim:/usr/src# ztcfg -vv

Zaptel Version: 1.4.9.2
Echo Canceller: MG2
Configuration

Channel map:

Channel 01: FXO Loopstart (Default) (Slaves: 01)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)

2 channels to configure.

cat /etc/zaptel.conf

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1” (MASTER)

fxoks=1
fxsks=4

Global data

loadzone = us
defaultzone = us

I really don’t know what I need to do next I am assuming I need to configure the channels, but I am not understanding how to do that.

any help would be great thank you.

Hi…

Now for configuring channels you have to go into /etc/asterisk and modify zapata.conf

You can find related information in following link:
voip-info.org/wiki-Asterisk+ … apata.conf

please Configure channels according to it and you’ll get through.

Cheers,
Rahul

I think I have my zapata.conf set correctly but when I run asterisk -r

and do zap show channels

nothing shows up

This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.18.1 currently running on Zim (pid = 20284)
Verbosity is at least 3
ZimCLI> zap show channels
Chan Extension Context Language MOH Interpret
Zim
CLI>

zapata.conf

;;General options
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0

;;FXS Modules
Group=1
signalling=fxo_ks
context=Internal
channel=1
;;FXO Modules
Group=2
echocancel=yes
signalling=fxs_ks
context=Incoming
channel=4

what have I done wrong with my configuration?

In zapata.conf, change “channel=n” to “channel => n”.

I tried the change you suggested and I still don’t see an channels when I type zap show channels in the cli>

all I get is this:

*CLI> zap show channels
Chan Extension Context Language MOH Interpret
*CLI>

here is my asterisk -vvvvvvvvc out put.

app_meetme.so => (MeetMe conference bridge)
== Registered application ‘While’
== Registered application ‘EndWhile’
== Registered application ‘ExitWhile’
== Registered application 'ContinueWhile’
app_while.so => (While Loops and Conditional Execution)
== Registered application 'NoCDR’
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
== Registered application 'ReadFile’
app_readfile.so => (Stores output of file into a variable)
== Registered application ‘SayUnixTime’
== Registered application 'DateTime’
app_sayunixtime.so => (Say time)
== Registered translator ‘lpc10tolin’ from format lpc10 to slin, cost 1
== Registered translator ‘lintolpc10’ from format slin to lpc10, cost 1
codec_lpc10.so => (LPC10 2.4kbps Coder/Decoder)
== Registered application 'Record’
app_record.so => (Trivial Record Application)
== Registered file format g726-40, extension(s) g726-40
== Registered file format g726-32, extension(s) g726-32
== Registered file format g726-24, extension(s) g726-24
== Registered file format g726-16, extension(s) g726-16
format_g726.so => (Raw G.726 (16/24/32/40kbps) data)
== Registered application 'AMD’
app_amd.so => (Answering Machine Detection Application)
pbx_realtime.so => (Realtime Switch)
== Registered application ‘TrySystem’
== Registered application 'System’
app_system.so => (Generic System() application)
== Registered application 'SoftHangup’
app_softhangup.so => (Hangs up the requested channel)
== Registered custom function SHA1
func_sha1.so => (SHA-1 computation dialplan function)
== Registered application 'Pickup’
app_directed_pickup.so => (Directed Call Pickup Application)
== Registered application ‘TestClient’
== Registered application 'TestServer’
app_test.so => (Interface Test Application)
== Registered application 'ControlPlayback’
app_controlplayback.so => (Control Playback Application)
== Registered custom function IAXPEER
== Registered application ‘IAX2Provision’
== Manager registered action IAXpeers
== Manager registered action IAXnetstats
== Parsing ‘/etc/asterisk/iax.conf’: Found
== Parsing ‘/etc/asterisk/iax_general_additional.conf’: Found
== Parsing ‘/etc/asterisk/iax_general_custom.conf’: Found
== Parsing ‘/etc/asterisk/iax_registrations_custom.conf’: Found
== Parsing ‘/etc/asterisk/iax_registrations.conf’: Found
== Parsing ‘/etc/asterisk/iax_custom.conf’: Found
== Parsing ‘/etc/asterisk/iax_additional.conf’: Found
== Parsing ‘/etc/asterisk/iax_custom_post.conf’: Found
== Using TOS bits 184
== Binding IAX2 to ‘0.0.0.0:4569’
== Registered channel type ‘IAX2’ (Inter Asterisk eXchange Driver (Ver 2))
== 10 helper threaads started
== IAX Ready and Listening
== Loaded firmware 'iaxy.bin’
chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
== Registered custom function MD5
== Registered custom function CHECK_MD5
func_md5.so => (MD5 digest dialplan functions)
== Registered application 'DISA’
app_disa.so => (DISA (Direct Inward System Access) Application)
== Registered application 'BackgroundDetect’
app_talkdetect.so => (Playback with Talk Detection)
== Registered application ‘Exec’
== Registered application ‘TryExec’
== Registered application 'ExecIf’
app_exec.so => (Executes dialplan applications)
== Parsing ‘/etc/asterisk/phone.conf’: Found
== Registered channel type ‘Phone’ (Standard Linux Telephony API Driver)
chan_phone.so => (Linux Telephony API Support)
== Registered application ‘ChanSpy’
== Registered application 'ExtenSpy’
app_chanspy.so => (Listen to the audio of an active channel)
== Registered file format sln, extension(s) sln|raw
format_sln.so => (Raw Signed Linear Audio support (SLN))
== Registered translator ‘gsmtolin’ from format gsm to slin, cost 1
== Registered translator ‘lintogsm’ from format slin to gsm, cost 1
codec_gsm.so => (GSM Coder/Decoder)
== Registered application ‘ZapSendKeypadFacility’
== Parsing ‘/etc/asterisk/zapata.conf’: Found
== Registered channel type ‘Zap’ (Zapata Telephony Driver w/PRI)
== Manager registered action ZapTransfer
== Manager registered action ZapHangup
== Manager registered action ZapDialOffhook
== Manager registered action ZapDNDon
== Manager registered action ZapDNDoff
== Manager registered action ZapShowChannels
== Manager registered action ZapRestart
chan_zap.so => (Zapata Telephony)
> AlarmReceiver: No config file
== Registered custom function FIELDQTY
== Registered custom function FILTER
== Registered custom function REGEX
== Registered custom function ARRAY
== Registered custom function QUOTE
== Registered custom function LEN
== Registered custom function STRFTIME
== Registered custom function STRPTIME
== Registered custom function EVAL
== Registered custom function KEYPADHASH
== Registered custom function SPRINTF
func_strings.so => (String handling dialplan functions)
== Registered application 'ZapScan’
app_zapscan.so => (Scan Zap channels application)
== Registered application 'ZapRAS’
app_zapras.so => (Zap RAS Application)
pbx_spool.so => (Outgoing Spool Support)
== Registered application 'GetCPEID’
app_getcpeid.so => (Get ADSI CPE ID)
== Registered application 'Flash’
app_flash.so => (Flash channel application)
== Registered custom function CDR
func_cdr.so => (CDR dialplan function)
== Registered application 'LookupCIDName’
app_lookupcidname.so => (Look up CallerID Name from local database)
== Registered application ‘Log’
== Registered application 'Verbose’
app_verbose.so => (Send verbose output)
== Registered application 'Milliwatt’
app_milliwatt.so => (Digital Milliwatt (mu-law) Test Application)
== Registered application 'SMS’
app_sms.so => (SMS/PSTN handler)
== Registered custom function BLACKLIST
== Registered application 'LookupBlacklist’
app_lookupblacklist.so => (Look up Caller*ID name/number from blacklist database)
== Registered custom function GROUP_COUNT
== Registered custom function GROUP_MATCH_COUNT
== Registered custom function GROUP_LIST
== Registered custom function GROUP
func_groupcount.so => (Channel group dialplan functions)
== Registered custom function CALLERID
func_callerid.so => (Caller ID related dialplan function)
== Registered application ‘RealTimeUpdate’
== Registered application 'RealTime’
app_realtime.so => (Realtime Data Lookup/Rewrite)
== Registered file format vox, extension(s) vox
format_vox.so => (Dialogic VOX (ADPCM) File Format)
== Registered application 'SendImage’
app_image.so => (Image Transmission Application)
== Registered application 'SetTransferCapability’
app_settransfercapability.so => (Set ISDN Transfer Capability)
== Registered channel type ‘Local’ (Local Proxy Channel Driver)
chan_local.so => (Local Proxy Channel (Note: used internally by other modules))
== Registered custom function VMCOUNT
== Registered application ‘HasVoicemail’
== Registered application 'HasNewVoicemail’
app_hasnewvoicemail.so => (Indicator for whether a voice mailbox has messages in a given folder.)
== Registered file format wav49, extension(s) WAV|wav49
format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
== Registered custom function CURL
func_curl.so => (Load external URL)
res_convert.so => (File format conversion CLI command)
== Registered application ‘SetCDRUserField’
== Registered application ‘AppendCDRUserField’
== Manager registered action SetCDRUserField
app_setcdruserfield.so => (CDR user field apps)
== Registered application 'ADSIProg’
app_adsiprog.so => (Asterisk ADSI Programming Application)
== Registered application 'SendURL’
app_url.so => (Send URL Applications)
== Registered translator ‘ilbctolin’ from format ilbc to slin, cost 2
== Registered translator ‘lintoilbc’ from format slin to ilbc, cost 12
codec_ilbc.so => (iLBC Coder/Decoder)
== Registered application 'Playback’
app_playback.so => (Sound File Playback Application)
== Registered application 'ChannelRedirect’
app_channelredirect.so => (Channel Redirect)
== Registered custom function LANGUAGE
func_language.so => (Channel language dialplan function)
== Registered custom function RAND
func_rand.so => (Random number dialplan function)
== Registered translator ‘g726tolin’ from format g726 to slin, cost 1
== Registered translator ‘lintog726’ from format slin to g726, cost 1
== Registered translator ‘g726aal2tolin’ from format g726aal2 to slin, cost 1
== Registered translator ‘lintog726aal2’ from format slin to g726aal2, cost 1
== Registered translator ‘g726aal2tog726’ from format g726aal2 to g726, cost 1
== Registered translator ‘g726tog726aal2’ from format g726 to g726aal2, cost 1
codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
== Registered file format h264, extension(s) h264
format_h264.so => (Raw H.264 data)
== Registered channel type ‘Agent’ (Call Agent Proxy Channel)
== Registered application ‘Dial’
== Registered application 'RetryDial’
app_dial.so => (Dialing Application)
== Registered application 'WaitForSilence’
app_waitforsilence.so => (Wait For Silence)
res_clioriginate.so => (Call origination from the CLI)
== Registered translator ‘alawtolin’ from format alaw to slin, cost 1
== Registered translator ‘lintoalaw’ from format slin to alaw, cost 1
codec_alaw.so => (A-law Coder/Decoder)
== Registered application 'Dictate’
app_dictate.so => (Virtual Dictation Machine)
== Registered custom function ENV
== Registered custom function STAT
func_env.so => (Environment/filesystem dialplan functions)
== Registered custom function ENUMLOOKUP
== Registered custom function TXTCIDNAME
func_enum.so => (ENUM related dialplan functions)
== Registered application 'ChanIsAvail’
app_chanisavail.so => (Check channel availability)
== Registered application 'Zapateller’
app_zapateller.so => (Block Telemarketers with Special Information Tone)
== Registered application 'ICES’
app_ices.so => (Encode and Stream via icecast and ices)
== Registered application 'NBScat’
app_nbscat.so => (Silly NBS Stream Application)
== Registered application ‘MixMonitor’
== Registered application 'StopMixMonitor’
app_mixmonitor.so => (Mixed Audio Monitoring Application)
== Registered application 'ExternalIVR’
app_externalivr.so => (External IVR Interface Application)
== Registered application ‘VoiceMail’
== Registered application ‘VoiceMailMain’
== Registered application ‘MailboxExists’
== Registered application ‘VMAuthenticate’
== Parsing ‘/etc/asterisk/voicemail.conf’: Found
== Parsing ‘/etc/asterisk/vm_general.inc’: Found
== Parsing ‘/etc/asterisk/vm_email.inc’: Found
app_voicemail.so => (Comedian Mail (Voicemail System))
Asterisk Ready.

What does “zap restart” say?

ZimCLI> zap restart
Destroying channels and reloading zaptel configuration.
== Parsing ‘/etc/asterisk/zapata.conf’: Found
Zim
CLI>

ZimCLI> zap show channels
Chan Extension Context Language MOH Interpret
Zim
CLI>

Sorry I missed it, there’s one more thing zapata.conf needs: “[channels]” up at the top.

the channels things seemed to do the trick, but now I got a new problem :frowning:

every time a incoming call comes in it places the vm-goodbye

it says something about zap incoming failed any ideas on how to fix it?

if I do a 7777 on an extension everything works just fine.

Starting simple switch on ‘Zap/4-1’
== Starting Zap/4-1 at Incoming,s,1 failed so falling back to exten ‘s’
== Starting Zap/4-1 at Incoming,s,1 still failed so falling back to context ‘default’
– Executing [s@default:1] Playback(“Zap/4-1”, “vm-goodbye”) in new stack
– <Zap/4-1> Playing ‘vm-goodbye’ (language ‘en’)
– Executing [s@default:2] Macro(“Zap/4-1”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Zap/4-1”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“Zap/4-1”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Zap/4-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Zap/4-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“Zap/4-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“Zap/4-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/4-1’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’

the channels thing seemed to do the trick, but now I got a new problem

every time a incoming call comes in it plays the vm-goodbye

it says something about zap incoming failed any ideas on how to fix it?

if I do a 7777 on an extension everything works just fine.

Starting simple switch on ‘Zap/4-1’
== Starting Zap/4-1 at Incoming,s,1 failed so falling back to exten ‘s’
== Starting Zap/4-1 at Incoming,s,1 still failed so falling back to context ‘default’
– Executing [s@default:1] Playback(“Zap/4-1”, “vm-goodbye”) in new stack
– <Zap/4-1> Playing ‘vm-goodbye’ (language ‘en’)
– Executing [s@default:2] Macro(“Zap/4-1”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Zap/4-1”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“Zap/4-1”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Zap/4-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Zap/4-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“Zap/4-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“Zap/4-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/4-1’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’ :cry: :frowning: :frowning: :frowning:

Can you please give your zapata.conf and zaptel.conf here?

cheers,
Rahul

cat zapata.conf

;;General options
[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0

;;FXS Modules
Group=1
signalling=fxo_ks
context=Internal
channel=>1
;;FXO Modules
Group=2
echocancel=yes
signalling=fxs_ks
context=Incoming
channel=>4

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: WCTDM/0 “Wildcard TDM400P REV I Board 1” (MASTER)

fxoks=1
fxsks=4

Global data

loadzone = us
defaultzone = us

Umm, you have an [Incoming] (not [incoming], case matters) context in extensions.conf, right?