[Freeswitch-svn] [commit] r13518 - freeswitch/trunk/src
FreeSWITCH SVN
brian at freeswitch.org
Fri May 29 20:24:11 PDT 2009
Author: brian
Date: Fri May 29 22:24:10 2009
New Revision: 13518
Log:
Adding the descriptor to the mapping request so when you list them you know its FreeSWITCH that did it
Modified:
freeswitch/trunk/src/switch_nat.c
Modified: freeswitch/trunk/src/switch_nat.c
==============================================================================
--- freeswitch/trunk/src/switch_nat.c (original)
+++ freeswitch/trunk/src/switch_nat.c Fri May 29 22:24:10 2009
@@ -203,9 +203,11 @@
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) {
More information about the Freeswitch-svn
mailing list