]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
unmap the implicit rtcp port
authorBrian West <brian@freeswitch.org>
Sat, 24 Apr 2010 20:05:04 +0000 (15:05 -0500)
committerBrian West <brian@freeswitch.org>
Sat, 24 Apr 2010 20:05:04 +0000 (15:05 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 193001fe1f6d096b5d9fb05858507c8f10a52548..c5f9ae9634048f5d87be8664d793d1700d883143 100644 (file)
@@ -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);
        }
 
 }