Status 2007-09-30
Asterisk compiles and runs on a FreeBSD systems. FreeBSD support has been maturing since the spring of 2004. If you are a first time user of Asterisk on FreeBSD it is STRONGLY suggested that you install Asterisk from the FreeBSD ports or packages collection.
Asterisk 1.4.11 is now available via the ports or packages. The FreeBSD port automatically includes the Zaptel driver, and H323 support. If you build the port from source, you can use the WITHOUT_H323 and WITHOUT_ZAPTEL knobs to disable these things.
Hardware support for various Digium devices is ongoing through the Project: zaptel drivers for FreeBSD.
However, there's no support for
If you are lookinig for support for Asterisk on FreeBSD you should try the Asterisk Mailing Lists. There is a FreeBSD specific list you might be interested in.
Visit the Google hosted project website, if you are interested in helping or contributing to the FreeBSD port of Asterisk etc: http://code.google.com/p/asterisk-bsd/
# cd /usr/ports/net/asterisk/
# make install
# cd /usr/ports/misc/zaptel/
# make install
Create new zaptel.conf /usr/local/etc/zaptel.conf
/usr/local/etc/rc.d/zaptel start
ztcfg
# pkg_add -rv asterisk
# pkg_add -rv zaptel
You want to work with the CVS HEAD code. One of the best way to keep up to date with Asterisk is with CVSUP. CVSUP, while not included in the base install of any version of FreeBSD, is the best way to keep up to date with FreeBSD kerel, releases, ports and now Asterisk.
If you don't have the cvsup binary already installed do this as root
pkg_add -r cvsup-without-gui
Create an asterisk-sup file. Here is a sample
host# cat /usr/local/etc/asterisk-sup
*default host=cvs.digium.com
*default base=/root/asterisk
*default release=cvs tag=.
*default delete use-rel-suffix
asterisk
Make sure you have compiled and installed the Project: zaptel drivers for FreeBSD.
Note on directories
Also, Asterisk installs configuration files in /etc/asterisk, instead of the FreeBSD standard /usr/local/etc/asterisk. You can change this manually in the Makefile, as well as other directories.
Remember to check /usr/local/etc/asterisk.conf after the install.
--- Makefile Thu Mar 24 22:55:44 2005
+++ Makefile~ Mon Mar 21 19:35:45 2005
@@ -120,17 +120,17 @@
# Don't use together with -DBUSYDETECT_TONEONLY
BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/local/lib/asterisk
+ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
-ASTETCDIR=$(INSTALL_PREFIX)/usr/local/etc/asterisk
+ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
-ASTHEADERDIR=$(INSTALL_PREFIX)/usr/local/include/asterisk
+ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
-ASTBINDIR=$(INSTALL_PREFIX)/usr/local/bin
-ASTSBINDIR=$(INSTALL_PREFIX)/usr/local/sbin
+ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
+ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
-ASTMANDIR=$(INSTALL_PREFIX)/usr/local/share/man
+ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
cp /usr/ports/net/asterisk/files/asterisk.sh /usr/local/etc/rc.d
chmod 755 /usr/local/etc/rc.d/asterisk.sh
To activate it edit your /etc/rc.conf file and add this line.
asterisk_enable="YES"
noload => pbx_wilcalu.so
When shutting Asterisk, likely mpg123 will refuse to stop, and will enter a tight loop eating up the CPU. You will need to "kill -9" it. mpg123 causes problems on all OSes, including Linux. It is best to avoid using mpg123, and use rawplayer.c on pre-processed sound files. If you dont need MOH, just comment out the lines in its config file and there are no problems.
If you start Asterisk up, and mpg123 is specified in musiconhold.conf, and you don't have mpg123, expect Asterisk to thrash around, eating up CPU time trying to re-exec the missing mpg123. If you comment everything out of musiconhold.conf, you disable the MOH, and any associated mpg123 issues too.
The Monitor application tries to invoke soxmix when mixing the two legs into one. This fails with the default rc.d/asterisk.sh since /usr/local/bin is not in the path.
Please help testing this configuration!
Asterisk | Asterisk Operating Systems
Asterisk on a FreeBSD server
Asterisk compiles and runs on a FreeBSD systems. FreeBSD support has been maturing since the spring of 2004. If you are a first time user of Asterisk on FreeBSD it is STRONGLY suggested that you install Asterisk from the FreeBSD ports or packages collection.
Asterisk 1.4.11 is now available via the ports or packages. The FreeBSD port automatically includes the Zaptel driver, and H323 support. If you build the port from source, you can use the WITHOUT_H323 and WITHOUT_ZAPTEL knobs to disable these things.
Hardware support for various Digium devices is ongoing through the Project: zaptel drivers for FreeBSD.
However, there's no support for
- ISDN channels (modem channel - ISDN4Linux or CAPI)
If you are lookinig for support for Asterisk on FreeBSD you should try the Asterisk Mailing Lists. There is a FreeBSD specific list you might be interested in.
Project website
Visit the Google hosted project website, if you are interested in helping or contributing to the FreeBSD port of Asterisk etc: http://code.google.com/p/asterisk-bsd/
Installation
Installing from the Ports collection.
This or the packages is the preferred method of installation if you want to install the latest stable release.- Use CVSup to update your ports to the most current version. See the FreeBSD Handbook for Using CVSup.
# cd /usr/ports/net/asterisk/
# make install
# cd /usr/ports/misc/zaptel/
# make install
Create new zaptel.conf /usr/local/etc/zaptel.conf
/usr/local/etc/rc.d/zaptel start
ztcfg
Installing from the Packages System.
See the FreeBSD Handbook for Using the Packages System.# pkg_add -rv asterisk
# pkg_add -rv zaptel
Running the latest development version of Asterisk
Nothing in this section is required if you just installed Asterisk from the port as described above.You want to work with the CVS HEAD code. One of the best way to keep up to date with Asterisk is with CVSUP. CVSUP, while not included in the base install of any version of FreeBSD, is the best way to keep up to date with FreeBSD kerel, releases, ports and now Asterisk.
If you don't have the cvsup binary already installed do this as root
pkg_add -r cvsup-without-gui
Create an asterisk-sup file. Here is a sample
host# cat /usr/local/etc/asterisk-sup
*default host=cvs.digium.com
*default base=/root/asterisk
*default release=cvs tag=.
*default delete use-rel-suffix
asterisk
Make sure you have compiled and installed the Project: zaptel drivers for FreeBSD.
Note on directories
Also, Asterisk installs configuration files in /etc/asterisk, instead of the FreeBSD standard /usr/local/etc/asterisk. You can change this manually in the Makefile, as well as other directories.
Remember to check /usr/local/etc/asterisk.conf after the install.
Changes to /root/asterisk/Makefile to make the install more BSD like.
--- Makefile Thu Mar 24 22:55:44 2005
+++ Makefile~ Mon Mar 21 19:35:45 2005
@@ -120,17 +120,17 @@
# Don't use together with -DBUSYDETECT_TONEONLY
BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE
-ASTLIBDIR=$(INSTALL_PREFIX)/usr/local/lib/asterisk
+ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
-ASTETCDIR=$(INSTALL_PREFIX)/usr/local/etc/asterisk
+ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
-ASTHEADERDIR=$(INSTALL_PREFIX)/usr/local/include/asterisk
+ASTHEADERDIR=$(INSTALL_PREFIX)/usr/include/asterisk
ASTCONFPATH=$(ASTETCDIR)/asterisk.conf
-ASTBINDIR=$(INSTALL_PREFIX)/usr/local/bin
-ASTSBINDIR=$(INSTALL_PREFIX)/usr/local/sbin
+ASTBINDIR=$(INSTALL_PREFIX)/usr/bin
+ASTSBINDIR=$(INSTALL_PREFIX)/usr/sbin
ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run
-ASTMANDIR=$(INSTALL_PREFIX)/usr/local/share/man
+ASTMANDIR=$(INSTALL_PREFIX)/usr/share/man
MODULES_DIR=$(ASTLIBDIR)/modules
AGI_DIR=$(ASTVARLIBDIR)/agi-bin
gmake
Use 'gmake' not 'make'. FreeBSD 'make' is BSD make, but Linux 'make' is GNU make. Since we can't have two 'make' programs with the same name, the GNU make on FreeBSD is called 'gmake'. FreeBSD uses magical functionality only available in BSD make, including features which make the ports framework and "make world" possible. If you don't have GNU make, install it from ports or packages.startup
You will want to borrow the startup script from the FreeBSD port version of Asterisk.cp /usr/ports/net/asterisk/files/asterisk.sh /usr/local/etc/rc.d
chmod 755 /usr/local/etc/rc.d/asterisk.sh
To activate it edit your /etc/rc.conf file and add this line.
asterisk_enable="YES"
CPU 99.9 % used by Asterisk?
The current version runs amok on a FreeBSD system, occuping all your CPU cycles. To get Asterisk back to a normal level, you have to disable the problematic module in Asterisk config modules.conf with this statement:noload => pbx_wilcalu.so
When shutting Asterisk, likely mpg123 will refuse to stop, and will enter a tight loop eating up the CPU. You will need to "kill -9" it. mpg123 causes problems on all OSes, including Linux. It is best to avoid using mpg123, and use rawplayer.c on pre-processed sound files. If you dont need MOH, just comment out the lines in its config file and there are no problems.
If you start Asterisk up, and mpg123 is specified in musiconhold.conf, and you don't have mpg123, expect Asterisk to thrash around, eating up CPU time trying to re-exec the missing mpg123. If you comment everything out of musiconhold.conf, you disable the MOH, and any associated mpg123 issues too.
The Monitor application tries to invoke soxmix when mixing the two legs into one. This fails with the default rc.d/asterisk.sh since /usr/local/bin is not in the path.
Everything else seems to work
VoiceMail, IAX connections, SIP connectivity, codecs - everything seems to work.Please help testing this configuration!
FreeBSD VOIP software
- SIP Express Router: SER runs on FreeBSD
- OpenSER: OpenSER SIP Server runs on FreeBSD
See Also
- Project: zaptel drivers for FreeBSD
- Installing Asterisk In A FreeBSD Jail
- A thread about installing the latest, greatest versions on FreeBSD
- Installing the port of Asterisk version 1.4.3 on FreeBSD 6.2
- Installazione del port di Asterisk 1.4.3 su FreeBSD 6.2 (Italian)
Asterisk | Asterisk Operating Systems

Comments
333No SMDI interfaces are available to listen on, not starting SDMI listener.
i had the same error (and i am using Freebsd)
"No SMDI interfaces are available to listen on, not starting SDMI listener. "
the solution is load ztdummy because you have no hardware so just edit /usr/local/etc/rc.d/zaptel
Replace:
kmod_load="zaptel.ko qozap.ko tau32pci.ko wcfxo.ko wcfxs.ko wct1xxp.ko wct4xxp.ko wcte11xp.ko wcte12xp.ko"
kmod_unload="wcte12xp.ko wcte11xp.ko wct4xxp.ko wct1xxp.ko wcfxs.ko wcfxo.ko tau32pci.ko qozap.ko zaptel.ko"
With:
kmod_load="zzaptel.ko ztdummy.ko"
kmod_unload="ztdummy.ko zaptel.ko"
good luck
333
The problem was the directory asterisk scans when it starts:
/etc/radiusclient-ng
Unfortunately it doesn't search under the correct prefix /usr/local and so it fails.
Simple solution : symlink to the right dir and everything works:
ln -s /usr/local/etc/radiusclient-ng /etc/radiusclient-ng
333probable bug iax + ztdummy
zaptel 1.4.1
asterisk 1.4.4_2
asterisk-addons 1.4.2
I've been trying to set up a simple iax + sip voip server without any
voip hardware. I've already done many servers like this, but with digium 400
and 100 clone cards. They always worked fine.
I've loaded the zaptel drivers with:
/usr/local/etc/rc.d/zaptel start
and then asterisk:
/usr/local/etc/rc.d/asterisk start
But it never starts up, it always abort with a core dump:
(asterisk), uid 0: exited on signal 11 (core dumped)
When I try to start asterisk with 'asterisk -v' whis is what I get:
mypbx# asterisk -v
Asterisk 1.4.4, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
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.
=========================================================================
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
Jul 16 13:53:59 NOTICE21250: cdr.c:1283 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
Answer
BackGround
Busy
Congestion
Goto
GotoIf
GotoIfTime
ExecIfTime
Hangup
NoOp
Progress
ResetCDR
Ringing
SayNumber
SayDigits
SayAlpha
SayPhonetic
SetAMAFlags
SetGlobalVar
Set
ImportVar
Wait
WaitExten
Asterisk Dynamic Loader Starting:
Jul 16 13:53:59 NOTICE21250: loader.c:799 load_modules: 164 modules will be loaded.
res_musiconhold.so => (Music On Hold Resource)
res_adsi.so => (ADSI Resource)
Jul 16 13:53:59 NOTICE21250: config.c:1172 ast_config_engine_register: Registered Config Engine odbc
res_config_odbc loaded.
res_config_odbc.so => (ODBC Configuration)
Jul 16 13:53:59 WARNING21250: res_config_pgsql.c:636 parse_config: Unable to load config res_pgsql.conf
res_crypto.so => (Cryptographic Digital Signatures)
res_features.so => (Call Features Resource)
res_indications.so => (Indications Resource)
Jul 16 13:53:59 NOTICE21250: res_jabber.c:2411 load_module: res_jabber.so loaded.
res_jabber.so => (AJI - Asterisk Jabber Interface)
res_monitor.so => (Call Monitoring Resource)
Jul 16 13:53:59 NOTICE21250: res_odbc.c:228 load_odbc_config: Adding ENV var: INFORMIXSERVER=my_special_database
Jul 16 13:53:59 NOTICE21250: res_odbc.c:228 load_odbc_config: Adding ENV var: INFORMIXDIR=/opt/informix
Jul 16 13:53:59 NOTICE21250: res_odbc.c:502 odbc_obj_connect: Connecting asterisk
Jul 16 13:53:59 WARNING21250: res_odbc.c:513 odbc_obj_connect: res_odbc: Error SQLConnect=-1 errno=0 unixODBCDriver ManagerData source name not found, and no default driver specified
Jul 16 13:53:59 WARNING21250: res_odbc.c:435 ast_odbc_request_obj: Failed to connect to asterisk
Jul 16 13:53:59 NOTICE21250: res_odbc.c:301 load_odbc_config: Registered ODBC class 'asterisk' dsn->asterisk
Jul 16 13:53:59 NOTICE21250: res_odbc.c:678 load_module: res_odbc loaded.
res_odbc.so => (ODBC Resource)
Jul 16 13:53:59 WARNING21250: res_smdi.c:722 load_module: No SMDI interfaces are available to listen on, not starting SDMI listener.
Loading SubAgent Module
res_snmp.so => (SNMP SubAgent for Asterisk)
res_speech.so => (Generic Speech Recognition API)
res_agi.so => (Asterisk Gateway Interface (AGI))
res_clioriginate.so => (Call origination from the CLI)
res_convert.so => (File format conversion CLI command)
chan_agent.so => (Agent Proxy Channel)
chan_features.so => (Feature Proxy Channel)
chan_gtalk.so => (Gtalk Channel Driver)
== Creating H.323 Endpoint
== H.323 listener started
chan_h323.so => (The NuFone Network's OpenH323 Channel Driver)
chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
chan_local.so => (Local Proxy Channel)
chan_mgcp.so => (Media Gateway Control Protocol (MGCP))
chan_oss.so => (OSS Console Channel Driver)
chan_sip.so => (Session Initiation Protocol (SIP))
chan_zap.so => (Zapata Telephony)
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3915 pbx_load_module: Starting AEL load process.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3922 pbx_load_module: AEL load process: calculated config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: = File: /usr/local/etc/asterisk/extensions.ael, Line 112, Cols: 34-34: Warning! The empty context ael-dundi-e164-canonical will be IGNORED!
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: = File: /usr/local/etc/asterisk/extensions.ael, Line 120, Cols: 34-34: Warning! The empty context ael-dundi-e164-customers will be IGNORED!
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: ==== File: /usr/local/etc/asterisk/extensions.ael, Line 128, Cols: 33-33: Warning! The empty context ael-dundi-e164-via-pstn will be IGNORED!
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3930 pbx_load_module: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-canonical' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-customers' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-via-pstn' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 276-283: The included context 'ael-parkedcalls' cannot be found.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3933 pbx_load_module: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3935 pbx_load_module: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3938 pbx_load_module: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-local' tries includes nonexistent context 'ael-parkedcalls'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-canonical'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-customers'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-via-pstn'
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3941 pbx_load_module: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'.
pbx_ael.so => (Asterisk Extension Language Compiler)
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-local' tries includes nonexistent context 'ael-parkedcalls'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-canonical'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-customers'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-via-pstn'
pbx_config.so => (Text Extension Configuration)
pbx_dundi.so => (Distributed Universal Number Discovery (DUNDi))
pbx_loopback.so => (Loopback Switch)
pbx_realtime.so => (Realtime Switch)
pbx_spool.so => (Outgoing Spool Support)
app_adsiprog.so => (Asterisk ADSI Programming Application)
app_alarmreceiver.so => (Alarm Receiver for Asterisk)
app_amd.so => (Answering Machine Detection Application)
app_authenticate.so => (Authentication Application)
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
app_chanisavail.so => (Check channel availability)
app_channelredirect.so => (Channel Redirect)
app_chanspy.so => (Listen to the audio of an active channel)
app_controlplayback.so => (Control Playback Application)
app_db.so => (Database Access Functions)
app_dial.so => (Dialing Application)
app_dictate.so => (Virtual Dictation Machine)
app_directed_pickup.so => (Directed Call Pickup Application)
app_directory.so => (Extension Directory)
app_disa.so => (DISA (Direct Inward System Access) Application)
app_dumpchan.so => (Dump Info About The Calling Channel)
app_echo.so => (Simple Echo Application)
app_exec.so => (Executes dialplan applications)
app_externalivr.so => (External IVR Interface Application)
app_festival.so => (Simple Festival Interface)
app_flash.so => (Flash channel application)
app_followme.so => (Find-Me/Follow-Me Application)
app_forkcdr.so => (Fork The CDR into 2 separate entities)
app_getcpeid.so => (Get ADSI CPE ID)
app_hasnewvoicemail.so => (Indicator for whether a voice mailbox has messages in a given folder.)
app_ices.so => (Encode and Stream via icecast and ices)
app_image.so => (Image Transmission Application)
app_lookupblacklist.so => (Look up Caller*ID name/number from blacklist database)
app_lookupcidname.so => (Look up CallerID Name from local database)
app_macro.so => (Extension Macros)
app_meetme.so => (MeetMe conference bridge)
app_milliwatt.so => (Digital Milliwatt (mu-law) Test Application)
app_mixmonitor.so => (Mixed Audio Monitoring Application)
app_morsecode.so => (Morse code)
app_mp3.so => (Silly MP3 Application)
app_nbscat.so => (Silly NBS Stream Application)
app_page.so => (Page Multiple Phones)
app_parkandannounce.so => (Call Parking and Announce Application)
app_playback.so => (Sound File Playback Application)
app_privacy.so => (Require phone number to be entered, if no CallerID sent)
app_queue.so => (True Call Queueing)
app_random.so => (Random goto)
app_read.so => (Read Variable Application)
app_readfile.so => (Stores output of file into a variable)
app_realtime.so => (Realtime Data Lookup/Rewrite)
app_record.so => (Trivial Record Application)
app_sayunixtime.so => (Say time)
app_senddtmf.so => (Send DTMF digits Application)
app_sendtext.so => (Send Text Applications)
app_setcallerid.so => (Set CallerID Application)
app_setcdruserfield.so => (CDR user field apps)
app_settransfercapability.so => (Set ISDN Transfer Capability)
app_sms.so => (SMS/PSTN handler)
app_softhangup.so => (Hangs up the requested channel)
app_speech_utils.so => (Dialplan Speech Applications)
app_stack.so => (Stack Routines)
app_system.so => (Generic System() application)
app_talkdetect.so => (Playback with Talk Detection)
app_test.so => (Interface Test Application)
app_transfer.so => (Transfer)
app_url.so => (Send URL Applications)
app_userevent.so => (Custom User Event Application)
app_verbose.so => (Send verbose output)
app_voicemail.so => (Comedian Mail (Voicemail System))
app_waitforring.so => (Waits until first ring after time)
app_waitforsilence.so => (Wait For Silence)
app_while.so => (While Loops and Conditional Execution)
app_zapateller.so => (Block Telemarketers with Special Information Tone)
app_zapbarge.so => (Barge in on Zap channel application)
app_zapras.so => (Zap RAS Application)
app_zapscan.so => (Scan Zap channels application)
codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_adpcm.so => (Adaptive Differential PCM Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_alaw.so => (A-law Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_gsm.so => (GSM Coder/Decoder)
codec_ilbc.so => (iLBC Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 180 format 6
codec_lpc10.so => (LPC10 2.4kbps Coder/Decoder)
codec_speex.so => (Speex Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_ulaw.so => (mu-Law Coder/Decoder)
codec_zap.so => (Generic Zaptel Transcoder Codec Translator)
format_g723.so => (G.723.1 Simple Timestamp File Format)
format_g726.so => (Raw G.726 (16/24/32/40kbps) data)
format_g729.so => (Raw G729 data)
format_gsm.so => (Raw GSM data)
format_h263.so => (Raw H.263 data)
format_h264.so => (Raw H.264 data)
format_ilbc.so => (Raw iLBC data)
format_jpeg.so => (JPEG (Joint Picture Experts Group) Image Format)
format_ogg_vorbis.so => (OGG/Vorbis audio)
format_pcm.so => (Raw/Sun uLaw/ALaw 8KHz Audio support (PCM,PCMA,AU) and G.722 16Khz Audio Support)
format_sln.so => (Raw Signed Linear Audio support (SLN))
format_vox.so => (Dialogic VOX (ADPCM) File Format)
format_wav.so => (Microsoft WAV format (8000Hz Signed Linear))
format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
cdr_csv.so => (Comma Separated Values CDR Backend)
cdr_custom.so => (Customizable Comma Separated Values CDR Backend)
cdr_manager.so => (Asterisk Manager Interface CDR Backend)
cdr_odbc.so => (ODBC CDR Backend)
cdr_pgsql.so => (PostgreSQL CDR Backend)
Segmentation fault (core dumped)
Does anybody know why this happen?
333probable bug iax + ztdummy
zaptel 1.4.1
asterisk 1.4.4_2
asterisk-addons 1.4.2
I've been trying to set up a simple iax + sip voip server without any
voip hardware. I've already done many servers like this, but with digium 400
and 100 clone cards. They always worked fine.
I've loaded the zaptel drivers with:
/usr/local/etc/rc.d/zaptel start
and then asterisk:
/usr/local/etc/rc.d/asterisk start
But it never starts up, it always abort with a core dump:
(asterisk), uid 0: exited on signal 11 (core dumped)
When I try to start asterisk with 'asterisk -v' whis is what I get:
mypbx# asterisk -v
Asterisk 1.4.4, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
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.
=========================================================================
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader Starting:
Jul 16 13:53:59 NOTICE21250: cdr.c:1283 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
Answer
BackGround
Busy
Congestion
Goto
GotoIf
GotoIfTime
ExecIfTime
Hangup
NoOp
Progress
ResetCDR
Ringing
SayNumber
SayDigits
SayAlpha
SayPhonetic
SetAMAFlags
SetGlobalVar
Set
ImportVar
Wait
WaitExten
Asterisk Dynamic Loader Starting:
Jul 16 13:53:59 NOTICE21250: loader.c:799 load_modules: 164 modules will be loaded.
res_musiconhold.so => (Music On Hold Resource)
res_adsi.so => (ADSI Resource)
Jul 16 13:53:59 NOTICE21250: config.c:1172 ast_config_engine_register: Registered Config Engine odbc
res_config_odbc loaded.
res_config_odbc.so => (ODBC Configuration)
Jul 16 13:53:59 WARNING21250: res_config_pgsql.c:636 parse_config: Unable to load config res_pgsql.conf
res_crypto.so => (Cryptographic Digital Signatures)
res_features.so => (Call Features Resource)
res_indications.so => (Indications Resource)
Jul 16 13:53:59 NOTICE21250: res_jabber.c:2411 load_module: res_jabber.so loaded.
res_jabber.so => (AJI - Asterisk Jabber Interface)
res_monitor.so => (Call Monitoring Resource)
Jul 16 13:53:59 NOTICE21250: res_odbc.c:228 load_odbc_config: Adding ENV var: INFORMIXSERVER=my_special_database
Jul 16 13:53:59 NOTICE21250: res_odbc.c:228 load_odbc_config: Adding ENV var: INFORMIXDIR=/opt/informix
Jul 16 13:53:59 NOTICE21250: res_odbc.c:502 odbc_obj_connect: Connecting asterisk
Jul 16 13:53:59 WARNING21250: res_odbc.c:513 odbc_obj_connect: res_odbc: Error SQLConnect=-1 errno=0 unixODBCDriver ManagerData source name not found, and no default driver specified
Jul 16 13:53:59 WARNING21250: res_odbc.c:435 ast_odbc_request_obj: Failed to connect to asterisk
Jul 16 13:53:59 NOTICE21250: res_odbc.c:301 load_odbc_config: Registered ODBC class 'asterisk' dsn->asterisk
Jul 16 13:53:59 NOTICE21250: res_odbc.c:678 load_module: res_odbc loaded.
res_odbc.so => (ODBC Resource)
Jul 16 13:53:59 WARNING21250: res_smdi.c:722 load_module: No SMDI interfaces are available to listen on, not starting SDMI listener.
Loading SubAgent Module
res_snmp.so => (SNMP SubAgent for Asterisk)
res_speech.so => (Generic Speech Recognition API)
res_agi.so => (Asterisk Gateway Interface (AGI))
res_clioriginate.so => (Call origination from the CLI)
res_convert.so => (File format conversion CLI command)
chan_agent.so => (Agent Proxy Channel)
chan_features.so => (Feature Proxy Channel)
chan_gtalk.so => (Gtalk Channel Driver)
== Creating H.323 Endpoint
== H.323 listener started
chan_h323.so => (The NuFone Network's OpenH323 Channel Driver)
chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
chan_local.so => (Local Proxy Channel)
chan_mgcp.so => (Media Gateway Control Protocol (MGCP))
chan_oss.so => (OSS Console Channel Driver)
chan_sip.so => (Session Initiation Protocol (SIP))
chan_zap.so => (Zapata Telephony)
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3915 pbx_load_module: Starting AEL load process.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3922 pbx_load_module: AEL load process: calculated config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: = File: /usr/local/etc/asterisk/extensions.ael, Line 112, Cols: 34-34: Warning! The empty context ael-dundi-e164-canonical will be IGNORED!
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: = File: /usr/local/etc/asterisk/extensions.ael, Line 120, Cols: 34-34: Warning! The empty context ael-dundi-e164-customers will be IGNORED!
Jul 16 13:54:00 WARNING21250: ael.y:205 ael_yyparse: ==== File: /usr/local/etc/asterisk/extensions.ael, Line 128, Cols: 33-33: Warning! The empty context ael-dundi-e164-via-pstn will be IGNORED!
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3930 pbx_load_module: AEL load process: parsed config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-canonical' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-customers' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 141-145: The included context 'ael-dundi-e164-via-pstn' cannot be found.
Jul 16 13:54:00 WARNING21250: pbx_ael.c:838 check_includes: Warning: file /usr/local/etc/asterisk/extensions.ael, line 276-283: The included context 'ael-parkedcalls' cannot be found.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3933 pbx_load_module: AEL load process: checked config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3935 pbx_load_module: AEL load process: compiled config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3938 pbx_load_module: AEL load process: merged config file name '/usr/local/etc/asterisk/extensions.ael'.
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-local' tries includes nonexistent context 'ael-parkedcalls'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-canonical'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-customers'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-via-pstn'
Jul 16 13:54:00 NOTICE21250: pbx_ael.c:3941 pbx_load_module: AEL load process: verified config file name '/usr/local/etc/asterisk/extensions.ael'.
pbx_ael.so => (Asterisk Extension Language Compiler)
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-local' tries includes nonexistent context 'ael-parkedcalls'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-canonical'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-customers'
Jul 16 13:54:00 WARNING21250: pbx.c:6250 ast_context_verify_includes: Context 'ael-dundi-e164-local' tries includes nonexistent context 'ael-dundi-e164-via-pstn'
pbx_config.so => (Text Extension Configuration)
pbx_dundi.so => (Distributed Universal Number Discovery (DUNDi))
pbx_loopback.so => (Loopback Switch)
pbx_realtime.so => (Realtime Switch)
pbx_spool.so => (Outgoing Spool Support)
app_adsiprog.so => (Asterisk ADSI Programming Application)
app_alarmreceiver.so => (Alarm Receiver for Asterisk)
app_amd.so => (Answering Machine Detection Application)
app_authenticate.so => (Authentication Application)
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
app_chanisavail.so => (Check channel availability)
app_channelredirect.so => (Channel Redirect)
app_chanspy.so => (Listen to the audio of an active channel)
app_controlplayback.so => (Control Playback Application)
app_db.so => (Database Access Functions)
app_dial.so => (Dialing Application)
app_dictate.so => (Virtual Dictation Machine)
app_directed_pickup.so => (Directed Call Pickup Application)
app_directory.so => (Extension Directory)
app_disa.so => (DISA (Direct Inward System Access) Application)
app_dumpchan.so => (Dump Info About The Calling Channel)
app_echo.so => (Simple Echo Application)
app_exec.so => (Executes dialplan applications)
app_externalivr.so => (External IVR Interface Application)
app_festival.so => (Simple Festival Interface)
app_flash.so => (Flash channel application)
app_followme.so => (Find-Me/Follow-Me Application)
app_forkcdr.so => (Fork The CDR into 2 separate entities)
app_getcpeid.so => (Get ADSI CPE ID)
app_hasnewvoicemail.so => (Indicator for whether a voice mailbox has messages in a given folder.)
app_ices.so => (Encode and Stream via icecast and ices)
app_image.so => (Image Transmission Application)
app_lookupblacklist.so => (Look up Caller*ID name/number from blacklist database)
app_lookupcidname.so => (Look up CallerID Name from local database)
app_macro.so => (Extension Macros)
app_meetme.so => (MeetMe conference bridge)
app_milliwatt.so => (Digital Milliwatt (mu-law) Test Application)
app_mixmonitor.so => (Mixed Audio Monitoring Application)
app_morsecode.so => (Morse code)
app_mp3.so => (Silly MP3 Application)
app_nbscat.so => (Silly NBS Stream Application)
app_page.so => (Page Multiple Phones)
app_parkandannounce.so => (Call Parking and Announce Application)
app_playback.so => (Sound File Playback Application)
app_privacy.so => (Require phone number to be entered, if no CallerID sent)
app_queue.so => (True Call Queueing)
app_random.so => (Random goto)
app_read.so => (Read Variable Application)
app_readfile.so => (Stores output of file into a variable)
app_realtime.so => (Realtime Data Lookup/Rewrite)
app_record.so => (Trivial Record Application)
app_sayunixtime.so => (Say time)
app_senddtmf.so => (Send DTMF digits Application)
app_sendtext.so => (Send Text Applications)
app_setcallerid.so => (Set CallerID Application)
app_setcdruserfield.so => (CDR user field apps)
app_settransfercapability.so => (Set ISDN Transfer Capability)
app_sms.so => (SMS/PSTN handler)
app_softhangup.so => (Hangs up the requested channel)
app_speech_utils.so => (Dialplan Speech Applications)
app_stack.so => (Stack Routines)
app_system.so => (Generic System() application)
app_talkdetect.so => (Playback with Talk Detection)
app_test.so => (Interface Test Application)
app_transfer.so => (Transfer)
app_url.so => (Send URL Applications)
app_userevent.so => (Custom User Event Application)
app_verbose.so => (Send verbose output)
app_voicemail.so => (Comedian Mail (Voicemail System))
app_waitforring.so => (Waits until first ring after time)
app_waitforsilence.so => (Wait For Silence)
app_while.so => (While Loops and Conditional Execution)
app_zapateller.so => (Block Telemarketers with Special Information Tone)
app_zapbarge.so => (Barge in on Zap channel application)
app_zapras.so => (Zap RAS Application)
app_zapscan.so => (Scan Zap channels application)
codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_adpcm.so => (Adaptive Differential PCM Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_alaw.so => (A-law Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_gsm.so => (GSM Coder/Decoder)
codec_ilbc.so => (iLBC Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 180 format 6
codec_lpc10.so => (LPC10 2.4kbps Coder/Decoder)
codec_speex.so => (Speex Coder/Decoder)
Jul 16 13:54:00 WARNING21250: translate.c:675 __ast_register_translator: plc_samples 160 format 6
codec_ulaw.so => (mu-Law Coder/Decoder)
codec_zap.so => (Generic Zaptel Transcoder Codec Translator)
format_g723.so => (G.723.1 Simple Timestamp File Format)
format_g726.so => (Raw G.726 (16/24/32/40kbps) data)
format_g729.so => (Raw G729 data)
format_gsm.so => (Raw GSM data)
format_h263.so => (Raw H.263 data)
format_h264.so => (Raw H.264 data)
format_ilbc.so => (Raw iLBC data)
format_jpeg.so => (JPEG (Joint Picture Experts Group) Image Format)
format_ogg_vorbis.so => (OGG/Vorbis audio)
format_pcm.so => (Raw/Sun uLaw/ALaw 8KHz Audio support (PCM,PCMA,AU) and G.722 16Khz Audio Support)
format_sln.so => (Raw Signed Linear Audio support (SLN))
format_vox.so => (Dialogic VOX (ADPCM) File Format)
format_wav.so => (Microsoft WAV format (8000Hz Signed Linear))
format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
cdr_csv.so => (Comma Separated Values CDR Backend)
cdr_custom.so => (Customizable Comma Separated Values CDR Backend)
cdr_manager.so => (Asterisk Manager Interface CDR Backend)
cdr_odbc.so => (ODBC CDR Backend)
cdr_pgsql.so => (PostgreSQL CDR Backend)
Segmentation fault (core dumped)
Does anybody know why this happen?
333Asterisk 1.2.7.1 FreeBSD 6.0 Release
333pbx_wilcalu.so is still a problem
333Thank you!
While 1.0.2 from /usr/ports didn't compile, 1.0.3 from the digium site compiled right out of the box, along with the zaptel driver in /usr/ports/misc
Thank you!!! I've been waiting to run asterisk on FreeBSD and now it's possible.
333Doesn't compile
333update
333CPU 99.9 % used by Asterisk seems gone