From 837e5349da494e1edbee415c0bc0be2685f6b55b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 2 Nov 2007 18:34:26 +0000 Subject: [PATCH] fix tiny snafu git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6148 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 3 ++- src/switch_ivr_async.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index a3710dba73..b6aeb4d8ca 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -316,13 +316,14 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se 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; diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index cd567937ae..cd2b2db3fe 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -1325,9 +1325,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_broadcast(const char *uuid, const cha switch_ivr_media(uuid, SMF_REBRIDGE); } - if ((p = strchr(mypath, ':'))) { + if ((p = strchr(mypath, ':')) && *(p+1) == ':') { app = mypath; *p++ = '\0'; + *p++ = '\0'; path = p; }