Adding the descriptor to the mapping request so when you list them you know its FreeSWITCH that did it

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13518 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-05-30 03:24:10 +00:00
parent 7e23aad405
commit d4d7315cc4
1 changed files with 4 additions and 2 deletions

View File

@ -203,9 +203,11 @@ static switch_status_t switch_nat_add_mapping_upnp(switch_port_t port, switch_na
sprintf(port_str, "%d", port);
if (proto == SWITCH_NAT_TCP) {
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str, nat_globals.pvt_addr, 0, "TCP", 0);
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str,
nat_globals.pvt_addr, "FreeSWITCH", "TCP", 0);
} else if(proto == SWITCH_NAT_UDP) {
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str, nat_globals.pvt_addr, 0, "UDP", 0);
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str,
nat_globals.pvt_addr, "FreeSWITCH", "UDP", 0);
}
if (r == UPNPCOMMAND_SUCCESS) {