[Freeswitch-svn] [commit] r11672 - freeswitch/branches/gmaruzz/mod_skypiax
FreeSWITCH SVN
gmaruzz at freeswitch.org
Fri Feb 6 11:37:00 PST 2009
Author: gmaruzz
Date: Fri Feb 6 13:36:59 2009
New Revision: 11672
Log:
skypiax: if don't start all interfaces, module don't load
Modified:
freeswitch/branches/gmaruzz/mod_skypiax/mod_skypiax.c
Modified: freeswitch/branches/gmaruzz/mod_skypiax/mod_skypiax.c
==============================================================================
--- freeswitch/branches/gmaruzz/mod_skypiax/mod_skypiax.c (original)
+++ freeswitch/branches/gmaruzz/mod_skypiax/mod_skypiax.c Fri Feb 6 13:36:59 2009
@@ -905,7 +905,7 @@
skypiax_skypeaudio_init(&globals.SKYPIAX_INTERFACES[interface_id]);
i=0;
- while (globals.SKYPIAX_INTERFACES[interface_id].SkypiaxHandles.api_connected == 0 && running && i < 6000) { // 60sec
+ while (globals.SKYPIAX_INTERFACES[interface_id].SkypiaxHandles.api_connected == 0 && running && i < 60000) { // 60sec FIXME
switch_sleep(1000);
i++;
}
@@ -913,7 +913,7 @@
NOTICA("STARTED interface_id=%d\n", SKYPIAX_P_LOG, interface_id);
} else {
ERRORA("FAILED to start interface_id=%d\n", SKYPIAX_P_LOG, interface_id);
- break;
+ return SWITCH_STATUS_FALSE;
}
} else {
@@ -961,7 +961,8 @@
running = 1;
- load_config();
+ if (load_config() != SWITCH_STATUS_SUCCESS)
+ return SWITCH_STATUS_FALSE;
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
skypiax_endpoint_interface =
More information about the Freeswitch-svn
mailing list