SWITCH_DECLARE(switch_status_t) switch_ivr_broadcast(const char *uuid, const char *path, switch_media_flag_t flags)
{
switch_channel_t *channel;
- switch_core_session_t *session, *master;
+ switch_core_session_t *session;
switch_event_t *event;
switch_core_session_t *other_session = NULL;
const char *other_uuid = NULL;
switch_assert(path);
- if (!(master = session = switch_core_session_locate(uuid))) {
+ if (!(session = switch_core_session_locate(uuid))) {
return SWITCH_STATUS_FALSE;
}
}
switch_core_session_rwunlock(other_session);
- master = other_session;
other_session = NULL;
}
switch_channel_set_flag(channel, CF_BROADCAST_DROP_MEDIA);
}
}
- master = session;
}
if (cause) {