fix tiny snafu
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6148 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9460ac9d1c
commit
837e5349da
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue