Cannot start asterisk for some reason

I was really hoping that someone on this forum could help me. I’ve been struggling for some time to get asterisk running under FreeBSD 6.1 with my Asterisk Developer’s Kit PCI TDM400P with two modules: one FXS and one FXO.

Here’s what happens:

asterisk -v

Asterisk 1.2.9.1, Copyright © 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welc ome to redistribute it under
certain conditions. Type ‘show license’ for details.

Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader loading preload modules:
Aug 26 13:53:34 NOTICE[62951]: cdr.c:1191 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
[Answer]
[BackGround]
[Busy]
[Congestion]
[DigitTimeout]
[Goto]
[GotoIf]
[GotoIfTime]
[ExecIfTime]
[Hangup]
[NoOp]
[Progress]
[ResetCDR]
[ResponseTimeout]
[Ringing]
[SayNumber]
[SayDigits]
[SayAlpha]
[SayPhonetic]
[SetAccount]
[SetAMAFlags]
[SetGlobalVar]
[SetLanguage]
[Set]
[SetVar]
[ImportVar]
[Wait]
[WaitExten]
Asterisk Dynamic Loader Starting:
[res_musiconhold.so] => (Music On Hold Resource)
[res_indications.so] => (Indications Configuration)
[res_monitor.so] => (Call Monitoring Resource)
[res_adsi.so] => (ADSI Resource)
[res_agi.so] => (Asterisk Gateway Interface (AGI))
[res_features.so] => (Call Features Resource)
[res_config_odbc.so] => (ODBC Configuration)
Aug 26 13:53:34 NOTICE[62951]: config.c:863 ast_config_engine_register: Register
ed Config Engine odbc
res_config_odbc loaded.
[res_odbc.so] => (ODBC Resource)
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:265 load_odbc_config: Adding ENV var:
INFORMIXSERVER=my_special_database
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:265 load_odbc_config: Adding ENV var:
INFORMIXDIR=/opt/informix
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:294 load_odbc_config: registered datab
ase handle ‘asterisk’ dsn->[asterisk]
Warning, flexibel rate not heavily tested!
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:554 odbc_obj_connect: Connecting aster
isk
Aug 26 13:53:34 WARNING[62951]: res_odbc.c:565 odbc_obj_connect: res_odbc: Error
SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and
no default driver specified
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:599 load_module: res_odbc loaded.
[res_crypto.so] => (Cryptographic Digital Signatures)
[pbx_config.so] => (Text Extension Configuration)
Aug 26 13:53:34 NOTICE[62951]: pbx.c:1745 pbx_extension_helper: Cannot find exte
nsion ‘611’ in context '(null)'
Aug 26 13:53:34 WARNING[62951]: pbx_config.c:1700 pbx_load_module: Invalid prior
ity/label ‘Answer’ at line 495
[pbx_spool.so] => (Outgoing Spool Support)
[pbx_dundi.so] => (Distributed Universal Number Discovery (DUNDi))
[pbx_loopback.so] => (Loopback Switch)
[pbx_realtime.so] => (Realtime Switch)
[pbx_ael.so] => (Asterisk Extension Language Compiler)
[pbx_functions.so] => (Builtin dialplan functions)
[chan_sip.so] => (Session Initiation Protocol (SIP))
[chan_agent.so] => (Agent Proxy Channel)
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
[chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
[chan_local.so] => (Local Proxy Channel)
[chan_skinny.so] => (Skinny Client Control Protocol (Skinny))
[chan_features.so] => (Feature Proxy Channel)
[chan_oss.so] => (OSS Console Channel Driver)
[chan_h323.so] => (The NuFone Network’s Open H.323 Channel Driver)
Aug 26 13:53:35 NOTICE[62951]: chan_h323.c:2001 reload_config: Unable to load co
nfig h323.conf, H.323 disabled
[chan_zap.so] => (Zapata Telephony w/PRI)
Aug 26 13:53:35 WARNING[62951]: config.c:525 process_text_line: No ‘=’ (equal si
gn) in line 134 of zapata.conf
Aug 26 13:53:35 WARNING[62951]: chan_zap.c:924 zt_open: Unable to specify channe
l 1: Operation not supported by device
Aug 26 13:53:35 ERROR[62951]: chan_zap.c:6927 mkintf: Unable to open channel 1:
Operation not supported by device
here = 0, tmp->channel = 1, channel = 1
Aug 26 13:53:35 ERROR[62951]: chan_zap.c:10358 setup_zap: Unable to register cha
nnel '1’
Aug 26 13:53:35 WARNING[62951]: loader.c:414 _load_resource: chan_zap.so: load
module failed, returning -1
Aug 26 13:53:35 WARNING[62951]: loader.c:554 load_modules: Loading module chan_z
ap.so failed!
Ouch … error while writing audio data: : Broken pipe
Warning, flexibel rate not heavily tested!

If you installed from the ports collection it should have been fine. However, installing from source was not what I found that worked for me and ended up using the ports collection.

Make sure your ports collection is up to date. The build won’t work unless you have the latest copy of the ports collection.

Are you running on i386 or x64 hardware? Zaptel won’t work on x64 architecture…at least I haven’t been able to get it working on my AMD machine.

If you plan on having music on hold or conference rooms, and I recommend you do, then you will need zaptel drivers loaded. The ports collection will install all the dependencies you will need.

.

Did you ever get a resolution to this issue. I have installed Asterisk onto a clean FreeBSD 6.1 Relase box and can not get it to run.
I get :chan_zap.c:924 zt_open: Unable to specify channel 2: Operation not supported by device

If I do not specify any channels in zapata.conf the the asterisk application will start.

I’ve had similar problems with my zaptel card. Try leaving the zaptel.conf and zapata.conf blank or generic for a moment and see if you get * to run. If it runs, and it probably will, then go back and recheck your config files for zaptel and zapata.conf.

Beware, it’s no secret, even though some people will say different, that FreeBSD and zaptel don’t always get along well.

.

Try this on your zaptel.conf, maybe it could work…
------<zaptel.conf>--------
fxsks=1
fxoks=2
loadzone=us
defaultzone=us
------</zaptel.conf>-------

Considering that the first module is a FXO and the second FXS.

ok?

:smiling_imp:

it should be:

fxoks=1
fxsks=2

Reverse what you have and it should work.