提交 d4d7315c authored 作者: Brian West's avatar Brian West

Adding the descriptor to the mapping request so when you list them you know its…

 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
上级 7e23aad4
......@@ -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) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论