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, Copyright © 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer
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:
Asterisk Dynamic Loader Starting:
[] => (Music On Hold Resource)
[] => (Indications Configuration)
[] => (Call Monitoring Resource)
[] => (ADSI Resource)
[] => (Asterisk Gateway Interface (AGI))
[] => (Call Features Resource)
[] => (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.
[] => (ODBC Resource)
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:265 load_odbc_config: Adding ENV var:
Aug 26 13:53:34 NOTICE[62951]: res_odbc.c:265 load_odbc_config: Adding ENV var:
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
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.
[] => (Cryptographic Digital Signatures)
[] => (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
[] => (Outgoing Spool Support)
[] => (Distributed Universal Number Discovery (DUNDi))
[] => (Loopback Switch)
[] => (Realtime Switch)
[] => (Asterisk Extension Language Compiler)
[] => (Builtin dialplan functions)
[] => (Session Initiation Protocol (SIP))
[] => (Agent Proxy Channel)
[] => (Media Gateway Control Protocol (MGCP))
[] => (Inter Asterisk eXchange (Ver 2))
[] => (Local Proxy Channel)
[] => (Skinny Client Control Protocol (Skinny))
[] => (Feature Proxy Channel)
[] => (OSS Console Channel Driver)
[] => (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
[] => (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: load
module failed, returning -1
Aug 26 13:53:35 WARNING[62951]: loader.c:554 load_modules: Loading module chan_z 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…

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



it should be:


Reverse what you have and it should work.