From: Brian West Date: Sat, 24 Apr 2010 20:05:04 +0000 (-0500) Subject: unmap the implicit rtcp port X-Git-Tag: git2svn-syncpoint-master~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cac7d5558001705768901d4689f80ddacf10797b;p=thirdparty%2Ffreeswitch.git unmap the implicit rtcp port --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 193001fe1f..c5f9ae9634 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -2189,6 +2189,7 @@ void sofia_glue_deactivate_rtp(private_object_t *tech_pvt) if (tech_pvt->local_sdp_video_port > 0 && !zstr(tech_pvt->remote_ip) && sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) { switch_nat_del_mapping((switch_port_t) tech_pvt->local_sdp_video_port, SWITCH_NAT_UDP); + switch_nat_del_mapping((switch_port_t) tech_pvt->local_sdp_video_port + 1, SWITCH_NAT_UDP); } @@ -2200,6 +2201,7 @@ void sofia_glue_deactivate_rtp(private_object_t *tech_pvt) if (tech_pvt->local_sdp_audio_port > 0 && !zstr(tech_pvt->remote_ip) && sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) { switch_nat_del_mapping((switch_port_t) tech_pvt->local_sdp_audio_port, SWITCH_NAT_UDP); + switch_nat_del_mapping((switch_port_t) tech_pvt->local_sdp_audio_port + 1, SWITCH_NAT_UDP); } }