return SWITCH_STATUS_FALSE;
}
- if (!switch_channel_media_ready(channel) || !switch_core_session_get_read_codec(session)) {
+ if (!switch_channel_media_up(channel) || !switch_core_session_get_read_codec(session)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Can not displace session. Media not enabled on channel\n");
return SWITCH_STATUS_FALSE;
}
switch_caller_profile_t *cp = NULL;
uint32_t sanity = 600;
- if (!switch_channel_media_ready(channel)) {
+ if (!switch_channel_media_up(channel)) {
goto end;
}
- while(switch_channel_state_change_pending(tchannel) || !switch_channel_media_ready(tchannel)) {
+ while(switch_channel_state_change_pending(tchannel) || !switch_channel_media_up(tchannel)) {
switch_yield(10000);
if (!--sanity) break;
}
return SWITCH_STATUS_FALSE;
}
- if (!switch_channel_media_ready(channel) || !switch_core_session_get_read_codec(session)) {
+ if (!switch_channel_media_up(channel) || !switch_core_session_get_read_codec(session)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Can not record session. Media not enabled on channel\n");
return SWITCH_STATUS_FALSE;
}
return SWITCH_STATUS_FALSE;
}
- if (!switch_channel_media_ready(channel) || !switch_core_session_get_read_codec(session)) {
+ if (!switch_channel_media_up(channel) || !switch_core_session_get_read_codec(session)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Can not install inband dtmf generate. Media not enabled on channel\n");
return status;
}