mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
enable nat mode for verto when ext-rtp-ip is set
This commit is contained in:
parent
b37d071908
commit
1710214025
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user