]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix tiny snafu
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 2 Nov 2007 18:34:26 +0000 (18:34 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 2 Nov 2007 18:34:26 +0000 (18:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6148 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c
src/switch_ivr_async.c

index a3710dba73c047aeae20dae613b872b6a777f810..b6aeb4d8caf4c77277bcc6a69cd0e6b0a24e86d5 100644 (file)
@@ -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;
index cd567937ae7052b7b37b02c74709da3cb7eb3378..cd2b2db3fe902c3732c4467171832a0896ffaeaa 100644 (file)
@@ -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;
                }