FIXED!!!!! I found out from this site that FreePBX clobbers modules.conf and that is what breaks it.
http://www.freepbx.org/v2/wiki/UbuntuServerIntrepid What I needed to do was save the modules.conf file, install FreePBX, then restore modules.conf There is still most definitely a bug in Asterisk, as this should have resulted in a reasonable message to tell me where the issue was. It's also a bug in FreePBX as it should not be going around breaking configuration files in the first place. If any one cares, I'll post the two files below. Perhaps some here will be able to tell exactly what it is about the FreePBX version of the file that kills Asterisk. cheers darryl ------------------------------------------------- # original version r...@asterisk:~# cat asterisk-modules.conf ; ; Asterisk configuration file ; ; Module Loader configuration file ; [modules] autoload=yes ; ; Any modules that need to be loaded before the Asterisk core has been ; initialized (just after the logger has been initialized) can be loaded ; using 'preload'. This will frequently be needed if you wish to map all ; module configuration files into Realtime storage, since the Realtime ; driver will need to be loaded before the modules using those configuration ; files are initialized. ; ; An example of loading ODBC support would be: ;preload => res_odbc.so ;preload => res_config_odbc.so ; ; If you want, load the GTK console right away. ; Don't load the KDE console since ; it's not as sophisticated right now. ; noload => pbx_gtkconsole.so ;load => pbx_gtkconsole.so noload => pbx_kdeconsole.so ; ; Intercom application is obsoleted by ; chan_oss. Don't load it. ; noload => app_intercom.so ; ; The 'modem' channel driver and its subdrivers are ; obsolete, don't load them. ; noload => chan_modem.so noload => chan_modem_aopen.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so ; ; Comment this out (after installing CAPI middleware and hardware ; drivers) if you have CAPI-able hardware and wish to use it in ; Asterisk. ; noload => chan_capi.so ; load => res_musiconhold.so ; ; Load either OSS or ALSA, not both ; By default, load OSS only (automatically) and do not load ALSA ; noload => chan_alsa.so ;noload => chan_oss.so ; ; Disable CDR logging to SQLite by default since it writes unconditionally to ; cdr.db without a way to rotate it. ; noload => cdr_sqlite.so ; ; These conflict with app_voicemail.so/app_directory.so and each other ; These are for IMAP and ODBC storage for Voicemail noload => app_directory_odbc.so noload => app_voicemail_odbc.so noload => app_voicemail_imap.so ; ; Enable these if you want to configure Asterisk in a database ; noload => res_config_odbc.so noload => res_config_pgsql.so ; Added by jmdault on 2009-06-01: it makes asterisk fail if there is no ; voicetronix hardware. noload => chan_vpb.so ; ; Module names listed in "global" section will have symbols globally ; exported to modules loaded after them. ; [global] r...@asterisk:~# ----------------------------------------------------------- # FreePBX version r...@asterisk:~# cat asterisk-modules.conf ; ; Asterisk configuration file ; ; Module Loader configuration file ; [modules] autoload=yes ; ; Any modules that need to be loaded before the Asterisk core has been ; initialized (just after the logger has been initialized) can be loaded ; using 'preload'. This will frequently be needed if you wish to map all ; module configuration files into Realtime storage, since the Realtime ; driver will need to be loaded before the modules using those configuration ; files are initialized. ; ; An example of loading ODBC support would be: ;preload => res_odbc.so ;preload => res_config_odbc.so ; ; If you want, load the GTK console right away. ; Don't load the KDE console since ; it's not as sophisticated right now. ; noload => pbx_gtkconsole.so ;load => pbx_gtkconsole.so noload => pbx_kdeconsole.so ; ; Intercom application is obsoleted by ; chan_oss. Don't load it. ; noload => app_intercom.so ; ; The 'modem' channel driver and its subdrivers are ; obsolete, don't load them. ; noload => chan_modem.so noload => chan_modem_aopen.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so ; ; Comment this out (after installing CAPI middleware and hardware ; drivers) if you have CAPI-able hardware and wish to use it in ; Asterisk. ; noload => chan_capi.so ; load => res_musiconhold.so ; ; Load either OSS or ALSA, not both ; By default, load OSS only (automatically) and do not load ALSA ; noload => chan_alsa.so ;noload => chan_oss.so ; ; Disable CDR logging to SQLite by default since it writes unconditionally to ; cdr.db without a way to rotate it. ; noload => cdr_sqlite.so ; ; These conflict with app_voicemail.so/app_directory.so and each other ; These are for IMAP and ODBC storage for Voicemail noload => app_directory_odbc.so noload => app_voicemail_odbc.so noload => app_voicemail_imap.so ; ; Enable these if you want to configure Asterisk in a database ; noload => res_config_odbc.so noload => res_config_pgsql.so ; Added by jmdault on 2009-06-01: it makes asterisk fail if there is no ; voicetronix hardware. noload => chan_vpb.so ; ; Module names listed in "global" section will have symbols globally ; exported to modules loaded after them. ; [global] r...@asterisk:~# cp ~/asterisk-modules.conf /etc/asterisk/modules.conf ^C r...@asterisk:~# ls asterisk-modules.conf asterisk-modules.conf.freepbx r...@asterisk:~# cat asterisk-modules.conf.freepbx ; ; Asterisk Module Loader configuration file ; ; [modules] autoload=yes ; ; If you want, load the GTK console right away. ; Don't load the KDE console since ; it's not as sophisticated right now. ; noload => pbx_gtkconsole.so ;load => pbx_gtkconsole.so noload => pbx_kdeconsole.so ; ; Intercom application is obsoleted by ; chan_oss. Don't load it. ; noload => app_intercom.so ; ; DON'T load the chan_modem.so, as they are obsolete in * 1.2 noload => chan_modem.so noload => chan_modem_aopen.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so ; Trunkisavail is a broken module supplied by Trixbox noload => app_trunkisavail.so ; Ensure that format_* modules are loaded before res_musiconhold ;load => format_ogg_vorbis.so load => format_wav.so load => format_pcm.so load => format_au.so ; This isn't part of 'Asterisk' iteslf, it's part of asterisk-addons. If this isn't ; installed, asterisk will fail to start. But it does need to go here for native MOH ; to work using mp3's. ; Note that on a system with a high number of calls, using a compressed audio format for ; musiconhold takes CPU resources. Converting these files to ulaw/alaw makes the job ; much easier for your CPU. load => format_mp3.so load => res_musiconhold.so ; ; Load either OSS or ALSA, not both ; By default, load no console driver ; noload => chan_alsa.so noload => chan_oss.so ; noload => app_directory_odbcstorage.so noload => app_voicemail_odbcstorage.so r...@asterisk:~# --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
