[Asterisk-Dev] reload module.so unloads othermod.so ?
Matthew Boehm
mboehm at cytelcom.com
Thu Oct 21 13:11:35 MST 2004
Testing module reload ability in my mysql realtime driver:
*CLI> reload res_config_mysql.so
-- Reloading module 'res_config_mysql.so' (MySQL RealTime Configuration
Driver)
Oct 21 13:53:48 WARNING[1076204160]: pbx.c:2382 ast_register_application:
Already have an application 'MusicOnHold'
*CLI> realtime mysql status
Connected to asterisk at 64.72.107.4, port 3306 with username asterisk for 1
minutes, 2 seconds.
*CLI> reload res_config_mysql.so
-- Reloading module 'res_config_mysql.so' (MySQL RealTime Configuration
Driver)
Oct 21 13:54:14 WARNING[1076204160]: pbx.c:2382 ast_register_application:
Already have an application 'MusicOnHold'
*CLI> realtime mysql status
Connected to asterisk at 64.72.107.4, port 3306 with username asterisk for 1
minutes, 10 seconds.
Umm..why is it talking about music on hold? My reload function:
int reload (void)
{
unload_module();
return load_module();
}
doing "unload res_config_mysql.so" works, and then immediatly doing "load
res_config_mysql.so" works.
Why would "reload res_config_mysql.so" have a problem?
-Matthew
More information about the asterisk-dev
mailing list