if (*rvp) {
v_engine->codec_params.remote_sdp_ip = switch_core_session_strdup(session, rip);
v_engine->codec_params.remote_sdp_port = (switch_port_t) atoi(rvp);
+ switch_channel_set_flag(session->channel, CF_VIDEO_POSSIBLE);
+ switch_channel_set_flag(session->channel, CF_VIDEO);
}
if (v_engine->codec_params.remote_sdp_ip && v_engine->codec_params.remote_sdp_port) {
}
a_engine = &smh->engines[SWITCH_MEDIA_TYPE_AUDIO];
- v_engine = &smh->engines[SWITCH_MEDIA_TYPE_AUDIO];
+ v_engine = &smh->engines[SWITCH_MEDIA_TYPE_VIDEO];
if (zstr(smh->mparams->local_sdp_str)) {
return;