[Freeswitch-svn] [commit] r6148 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Nov 2 14:34:26 EDT 2007
Author: anthm
Date: Fri Nov 2 14:34:26 2007
New Revision: 6148
Modified:
freeswitch/trunk/src/switch_ivr.c
freeswitch/trunk/src/switch_ivr_async.c
Log:
fix tiny snafu
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Fri Nov 2 14:34:26 2007
@@ -316,13 +316,14 @@
if (loop_h) {
loops = atoi(loop_h);
}
-
+
if (app_name) {
if ((application_interface = switch_loadable_module_get_application_interface(app_name))) {
if (application_interface->application_function) {
int x;
switch_channel_set_flag(channel, CF_BROADCAST);
for (x = 0; x < loops || loops < 0; x++) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Command Execute %s(%s)\n", app_name, app_arg);
switch_core_session_exec(session, application_interface, app_arg);
if (!switch_channel_ready(channel) || !switch_channel_test_flag(channel, CF_BROADCAST)) {
break;
Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c (original)
+++ freeswitch/trunk/src/switch_ivr_async.c Fri Nov 2 14:34:26 2007
@@ -1325,9 +1325,10 @@
switch_ivr_media(uuid, SMF_REBRIDGE);
}
- if ((p = strchr(mypath, ':'))) {
+ if ((p = strchr(mypath, ':')) && *(p+1) == ':') {
app = mypath;
*p++ = '\0';
+ *p++ = '\0';
path = p;
}
More information about the Freeswitch-svn
mailing list