]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Mirror back the port so people don't ask why its ZERO
authorBrian West <brian@freeswitch.org>
Fri, 5 Jun 2009 19:31:25 +0000 (19:31 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 5 Jun 2009 19:31:25 +0000 (19:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13646 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_nat.c

index 98bde2aa5f23e63321f638b94314656df4d14e3c..0b8196d2fc4955ae7f2cb3892794f0f812960957 100644 (file)
@@ -269,7 +269,7 @@ static switch_status_t switch_nat_del_mapping_pmp(switch_port_t port, switch_nat
 
        if (r == 0) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "unmapped public port %hu protocol %s to localport %hu\n",
-                                                 response.pnu.newportmapping.mappedpublicport,
+                                                 response.pnu.newportmapping.privateport, /* This might be wrong but its so 0 isn't displayed */
                                                  response.type == NATPMP_RESPTYPE_UDPPORTMAPPING ? "UDP" :
                                                  (response.type == NATPMP_RESPTYPE_TCPPORTMAPPING ? "TCP" : "UNKNOWN"),
                                                  response.pnu.newportmapping.privateport);