enable nat mode for verto when ext-rtp-ip is set

This commit is contained in:
Anthony Minessale 2015-01-23 20:53:00 +00:00 committed by root
parent b37d071908
commit 1710214025
2 changed files with 6 additions and 1 deletions

View File

@ -2203,7 +2203,7 @@ static void verto_set_media_options(verto_pvt_t *tech_pvt, verto_profile_t *prof
profile->rtpip_cur = 0;
}
tech_pvt->mparams->extrtpip = profile->extrtpip;
tech_pvt->mparams->extrtpip = tech_pvt->mparams->extsipip = profile->extrtpip;
//tech_pvt->mparams->dtmf_type = tech_pvt->profile->dtmf_type;
switch_channel_set_flag(tech_pvt->channel, CF_TRACKABLE);

View File

@ -2926,6 +2926,11 @@ static void check_ice(switch_media_handle_t *smh, switch_media_type_t type, sdp_
engine->cur_payload_map->remote_sdp_ip = switch_core_session_strdup(smh->session, (char *) engine->ice_in.cands[engine->ice_in.chosen[0]][0].con_addr);
engine->cur_payload_map->remote_sdp_port = (switch_port_t) engine->ice_in.cands[engine->ice_in.chosen[0]][0].con_port;
if (!smh->mparams->remote_ip) {
smh->mparams->remote_ip = engine->cur_payload_map->remote_sdp_ip;
}
if (engine->remote_rtcp_port) {
engine->remote_rtcp_port = engine->cur_payload_map->remote_sdp_port;
}