Dahdi not loading at boot

astrimart
Joined: Mon 28 of Sep, 2009

Dahdi not loading at boot

Posted:Mon 28 of Sep, 2009 (17:59 UTC)
Hi

I am running asterisk 1.6.1.0 on ubuntu. I have a bp410p using dahdi for incoming calls on isdn. All is working 100%. My problem is that whenever i reboot my asterisk box, the dahdi does not load. I then need to restart asterisk in the cli and then all works 100%. What could be causing this?? I need some pro help here as i'm still far from that. :-)


Here's my /var/log/asterisk/full when booting up:
[Sep 28 19:14:36] NOTICE[2100] cdr.c: CDR simple logging enabled.
[Sep 28 19:14:36] NOTICE[2100] loader.c: 169 modules will be loaded.
[Sep 28 19:14:36] NOTICE[2100] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Sep 28 19:14:37] ERROR[2100] res_phoneprov.c: Unable to load config phoneprov.conf
[Sep 28 19:14:37] WARNING[2100] chan_dahdi.c: Unable to open '/dev/dahdi/channel': No such file or directory
[Sep 28 19:14:37] ERROR[2100] chan_dahdi.c: Unable to open channel 1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
[Sep 28 19:14:37] ERROR[2100] chan_dahdi.c: Unable to register channel '1,2,4,5,7,8,10,11'
[Sep 28 19:14:37] WARNING[2100] app_minivm.c: Failed to load configuration file. Module activated with default settings.
[Sep 28 19:14:37] WARNING[2100] translate.c: plc_samples 160 format f
[Sep 28 19:14:37] WARNING[2100] loader.c: Error loading module 'app_hasnewvoicemail.so': /usr/lib/asterisk/modules/app_hasnewvoicema
il.so: undefined symbol: ast_custom_function_register
[Sep 28 19:14:37] WARNING[2100] loader.c: Module 'app_hasnewvoicemail.so' could not be loaded.
[Sep 28 19:14:37] VERBOSE[2100] chan_sip.c: SIP channel loading...
[Sep 28 19:14:37] NOTICE[2100] chan_sip.c: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[Sep 28 19:14:37] NOTICE[2100] pbx.c: Cannot find extension 's.n' in context '(null)'
[Sep 28 19:14:37] WARNING[2100] pbx_config.c: Invalid priority/label 'Wait' at line 82
[Sep 28 19:14:37] WARNING[2100] pbx.c: Context 'dcs' tries to include nonexistent context 'incoming-dcs'
[Sep 28 19:14:37] WARNING[2100] loader.c: Error loading module 'app_lookupcidname.so': /usr/lib/asterisk/modules/app_lookupcidname.s
o: undefined symbol: ast_register_application
[Sep 28 19:14:37] WARNING[2100] loader.c: Module 'app_lookupcidname.so' could not be loaded.
[Sep 28 19:14:37] WARNING[2100] chan_iax2.c: Invalid tos value, refer to QoS documentation
[Sep 28 19:14:42] WARNING[2100] acl.c: Unable to lookup 'staff.adsl.mjvn.co.za'
[Sep 28 19:14:42] WARNING[2100] chan_iax2.c: Invalid tos value at line 216, refer to QoS documentation
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_random.so': /usr/lib/asterisk/modules/app_random.so: undefined s
ymbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_random.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_setcdruserfield.so': /usr/lib/asterisk/modules/app_setcdruserfie
ld.so: undefined symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_setcdruserfield.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_lookupblacklist.so': /usr/lib/asterisk/modules/app_lookupblackli
st.so: undefined symbol: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_lookupblacklist.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'res_features.so': /usr/lib/asterisk/modules/res_features.so: undefin
ed symbol: manager_event
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'res_features.so' could not be loaded.
[Sep 28 19:14:43] ERROR[2100] chan_unistim.c: Unable to load config unistim.conf
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'func_language.so': /usr/lib/asterisk/modules/func_language.so: undef
ined symbol: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'func_language.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'func_moh.so': /usr/lib/asterisk/modules/func_moh.so: undefined symbo
l: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'func_moh.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_settransfercapability.so': /usr/lib/asterisk/modules/app_settran
sfercapability.so: undefined symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_settransfercapability.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_realtime.so': /usr/lib/asterisk/modules/app_realtime.so: undefin
ed symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_realtime.so' could not be loaded.

Here is the same file after i stop and start asterisk again:

[Sep 28 19:14:36] NOTICE[2100] cdr.c: CDR simple logging enabled.
[Sep 28 19:14:36] NOTICE[2100] loader.c: 169 modules will be loaded.
[Sep 28 19:14:36] NOTICE[2100] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Sep 28 19:14:37] ERROR[2100] res_phoneprov.c: Unable to load config phoneprov.conf
[Sep 28 19:14:37] WARNING[2100] chan_dahdi.c: Unable to open '/dev/dahdi/channel': No such file or directory
[Sep 28 19:14:37] ERROR[2100] chan_dahdi.c: Unable to open channel 1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
[Sep 28 19:14:37] ERROR[2100] chan_dahdi.c: Unable to register channel '1,2,4,5,7,8,10,11'
[Sep 28 19:14:37] WARNING[2100] app_minivm.c: Failed to load configuration file. Module activated with default settings.
[Sep 28 19:14:37] WARNING[2100] translate.c: plc_samples 160 format f
[Sep 28 19:14:37] WARNING[2100] loader.c: Error loading module 'app_hasnewvoicemail.so': /usr/lib/asterisk/modules/app_hasnewvoicema
il.so: undefined symbol: ast_custom_function_register
[Sep 28 19:14:37] WARNING[2100] loader.c: Module 'app_hasnewvoicemail.so' could not be loaded.
[Sep 28 19:14:37] VERBOSE[2100] chan_sip.c: SIP channel loading...
[Sep 28 19:14:37] NOTICE[2100] chan_sip.c: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
[Sep 28 19:14:37] NOTICE[2100] pbx.c: Cannot find extension 's.n' in context '(null)'
[Sep 28 19:14:37] WARNING[2100] pbx_config.c: Invalid priority/label 'Wait' at line 82
[Sep 28 19:14:37] WARNING[2100] pbx.c: Context 'dcs' tries to include nonexistent context 'incoming-dcs'
[Sep 28 19:14:37] WARNING[2100] loader.c: Error loading module 'app_lookupcidname.so': /usr/lib/asterisk/modules/app_lookupcidname.s
o: undefined symbol: ast_register_application
[Sep 28 19:14:37] WARNING[2100] loader.c: Module 'app_lookupcidname.so' could not be loaded.
[Sep 28 19:14:37] WARNING[2100] chan_iax2.c: Invalid tos value, refer to QoS documentation
[Sep 28 19:14:42] WARNING[2100] acl.c: Unable to lookup 'staff.adsl.mjvn.co.za'
[Sep 28 19:14:42] WARNING[2100] chan_iax2.c: Invalid tos value at line 216, refer to QoS documentation
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_random.so': /usr/lib/asterisk/modules/app_random.so: undefined s
ymbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_random.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_setcdruserfield.so': /usr/lib/asterisk/modules/app_setcdruserfie
ld.so: undefined symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_setcdruserfield.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_lookupblacklist.so': /usr/lib/asterisk/modules/app_lookupblackli
st.so: undefined symbol: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_lookupblacklist.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'res_features.so': /usr/lib/asterisk/modules/res_features.so: undefin
ed symbol: manager_event
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'res_features.so' could not be loaded.
[Sep 28 19:14:43] ERROR[2100] chan_unistim.c: Unable to load config unistim.conf
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'func_language.so': /usr/lib/asterisk/modules/func_language.so: undef
ined symbol: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'func_language.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'func_moh.so': /usr/lib/asterisk/modules/func_moh.so: undefined symbo
l: ast_custom_function_register
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'func_moh.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_settransfercapability.so': /usr/lib/asterisk/modules/app_settran
sfercapability.so: undefined symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_settransfercapability.so' could not be loaded.
[Sep 28 19:14:43] WARNING[2100] loader.c: Error loading module 'app_realtime.so': /usr/lib/asterisk/modules/app_realtime.so: undefin
ed symbol: ast_register_application
[Sep 28 19:14:43] WARNING[2100] loader.c: Module 'app_realtime.so' could not be loaded.

Here is my /etc/dahdi/system.conf
loadzone=us
defaultzone=us
span=1,1,0,ccs,ami
bchan=1,2
hardhdlc=3
span=2,0,0,ccs,ami
bchan=4,5
hardhdlc=6
span=3,0,0,ccs,ami
bchan=7,8
hardhdlc=9
span = 4,0,0,ccs,ami
bchan = 10,11
hardhdlc = 12

Please help.  Could this be due to asterisk loading before the modules are loaded?  How can i first load the modules and then start asterisk.  Asterisk is started using:

$ sudo vi /etc/event.d/asterisk

Then put the contents of the following in the file:

   # This service maintains Asterisk from the point the system is
   # started until it is shut down again.

   description     "Asterisk daemon"

   start on runlevel-2
   stop on shutdown

   respawn
   exec //usr/sbin/asterisk -f 


Thanx