2009-05-30 00:14:57 +00:00
|
|
|
/*
|
|
|
|
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
|
|
|
* Copyright (C) 2005-2009, Anthony Minessale II <anthm@freeswitch.org>
|
|
|
|
*
|
|
|
|
* Version: MPL 1.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Anthony Minessale II <anthm@freeswitch.org>
|
|
|
|
* Portions created by the Initial Developer are Copyright (C)
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Anthony Minessale II <anthm@freeswitch.org>
|
|
|
|
* Brian K. West <brian@freeswitch.org>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* switch_nat.c NAT Traversal via NAT-PMP or uPNP
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <switch.h>
|
|
|
|
#include "../libs/miniupnpc/miniwget.h"
|
|
|
|
#include "../libs/miniupnpc/miniupnpc.h"
|
|
|
|
#include "../libs/miniupnpc/upnpcommands.h"
|
|
|
|
#include "../libs/miniupnpc/upnperrors.h"
|
|
|
|
#include "../libs/libnatpmp/natpmp.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
switch_memory_pool_t *pool;
|
|
|
|
switch_nat_type_t nat_type;
|
|
|
|
struct UPNPUrls urls;
|
|
|
|
struct IGDdatas data;
|
|
|
|
char pub_addr[16];
|
|
|
|
char pvt_addr[16];
|
|
|
|
|
|
|
|
} nat_globals_t;
|
|
|
|
|
|
|
|
static nat_globals_t nat_globals;
|
|
|
|
|
|
|
|
static int init_upnp (void)
|
|
|
|
{
|
2009-05-30 10:24:38 +00:00
|
|
|
struct UPNPDev *devlist;
|
|
|
|
struct UPNPDev *dev;
|
2009-05-30 00:14:57 +00:00
|
|
|
char * descXML;
|
|
|
|
int descXMLsize = 0;
|
2009-05-30 10:24:38 +00:00
|
|
|
const char *multicastif = 0;
|
|
|
|
const char *minissdpdpath = 0;
|
2009-05-30 00:14:57 +00:00
|
|
|
int r = -2;
|
|
|
|
|
|
|
|
memset(&nat_globals.urls, 0, sizeof(struct UPNPUrls));
|
|
|
|
memset(&nat_globals.data, 0, sizeof(struct IGDdatas));
|
2009-05-30 10:01:21 +00:00
|
|
|
devlist = upnpDiscover(1000, multicastif, minissdpdpath, 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
if (devlist) {
|
|
|
|
dev = devlist;
|
|
|
|
while (dev) {
|
2009-05-30 10:01:21 +00:00
|
|
|
if (strstr (dev->st, "InternetGatewayDevice")) {
|
2009-05-30 00:14:57 +00:00
|
|
|
break;
|
2009-05-30 10:01:21 +00:00
|
|
|
}
|
2009-05-30 00:14:57 +00:00
|
|
|
dev = dev->pNext;
|
|
|
|
}
|
|
|
|
if (!dev) {
|
|
|
|
dev = devlist; /* defaulting to first device */
|
2009-06-09 14:40:27 +00:00
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "No InternetGatewayDevice, using first entry as default.\n");
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
descXML = miniwget(dev->descURL, &descXMLsize);
|
|
|
|
|
|
|
|
if (descXML) {
|
|
|
|
parserootdesc (descXML, descXMLsize, &nat_globals.data);
|
|
|
|
free (descXML); descXML = 0;
|
|
|
|
GetUPNPUrls (&nat_globals.urls, &nat_globals.data, dev->descURL);
|
|
|
|
}
|
|
|
|
|
|
|
|
freeUPNPDevlist(devlist);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((r = UPNP_GetExternalIPAddress(nat_globals.urls.controlURL,
|
|
|
|
nat_globals.data.servicetype,
|
|
|
|
nat_globals.pub_addr)) == UPNPCOMMAND_SUCCESS) {
|
|
|
|
|
2009-06-09 14:40:27 +00:00
|
|
|
if (!strcmp(nat_globals.pub_addr, "0.0.0.0")) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
|
|
|
|
"uPNP Device (url: %s) returned an invalid external address of 0.0.0.0. Disabling uPNP\n", nat_globals.urls.controlURL);
|
|
|
|
return -2;
|
|
|
|
}
|
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
nat_globals.nat_type = SWITCH_NAT_TYPE_UPNP;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return -2;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int init_pmp(void)
|
|
|
|
{
|
2009-06-02 22:46:38 +00:00
|
|
|
int r = 0, i = 0, max = 5;
|
2009-05-30 00:14:57 +00:00
|
|
|
natpmpresp_t response;
|
|
|
|
char *pubaddr = NULL;
|
|
|
|
fd_set fds;
|
2009-06-05 15:01:54 +00:00
|
|
|
natpmp_t natpmp;
|
2009-06-02 22:46:38 +00:00
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
|
2009-06-05 15:01:54 +00:00
|
|
|
initnatpmp(&natpmp);
|
|
|
|
r = sendpublicaddressrequest(&natpmp);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
if (r < 0) {
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
2009-06-02 22:46:38 +00:00
|
|
|
struct timeval timeout = { 1, 0};
|
|
|
|
i++;
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Checking for PMP %d/%d\n", i, max);
|
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
FD_ZERO(&fds);
|
2009-06-05 15:01:54 +00:00
|
|
|
FD_SET(natpmp.s, &fds);
|
|
|
|
getnatpmprequesttimeout(&natpmp, &timeout);
|
2009-05-30 00:14:57 +00:00
|
|
|
select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
|
2009-06-05 15:01:54 +00:00
|
|
|
r = readnatpmpresponseorretry(&natpmp, &response);
|
2009-06-02 22:46:38 +00:00
|
|
|
} while(r == NATPMP_TRYAGAIN && i < max);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
if (r < 0) {
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
|
|
|
|
pubaddr = inet_ntoa(response.pnu.publicaddress.addr);
|
|
|
|
switch_set_string(nat_globals.pub_addr, pubaddr);
|
|
|
|
nat_globals.nat_type = SWITCH_NAT_TYPE_PMP;
|
|
|
|
|
2009-06-05 15:01:54 +00:00
|
|
|
closenatpmp(&natpmp);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
end:
|
|
|
|
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWITCH_DECLARE(void) switch_nat_init(switch_memory_pool_t *pool)
|
|
|
|
{
|
|
|
|
memset(&nat_globals, 0, sizeof(nat_globals));
|
|
|
|
nat_globals.pool = pool;
|
|
|
|
|
2009-06-02 16:55:10 +00:00
|
|
|
switch_find_local_ip(nat_globals.pvt_addr, sizeof(nat_globals.pvt_addr), NULL, AF_INET);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
2009-06-02 22:03:33 +00:00
|
|
|
|
2009-06-02 22:46:38 +00:00
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Scanning for NAT\n");
|
2009-06-02 22:03:33 +00:00
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
init_pmp();
|
|
|
|
|
2009-06-02 22:46:38 +00:00
|
|
|
if (!nat_globals.nat_type) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Checking for UPnP\n");
|
2009-05-30 00:14:57 +00:00
|
|
|
init_upnp();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nat_globals.nat_type) {
|
|
|
|
switch_core_set_variable("nat_public_addr", nat_globals.pub_addr);
|
|
|
|
switch_core_set_variable("nat_private_addr", nat_globals.pvt_addr);
|
|
|
|
switch_core_set_variable("nat_type", nat_globals.nat_type == SWITCH_NAT_TYPE_PMP ? "pmp" : "upnp");
|
2009-06-02 22:03:33 +00:00
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "NAT detected type: %s\n", nat_globals.nat_type == SWITCH_NAT_TYPE_PMP ? "pmp" : "upnp");
|
2009-05-30 00:14:57 +00:00
|
|
|
} else {
|
2009-06-02 22:46:38 +00:00
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "No PMP or UPnP NAT detected!\n");
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-06-05 02:30:44 +00:00
|
|
|
static switch_status_t switch_nat_add_mapping_pmp(switch_port_t port, switch_nat_ip_proto_t proto, switch_port_t *external_port)
|
2009-05-30 00:14:57 +00:00
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
natpmpresp_t response;
|
|
|
|
int r;
|
2009-06-05 15:01:54 +00:00
|
|
|
natpmp_t natpmp;
|
2009-05-30 00:14:57 +00:00
|
|
|
|
2009-06-05 15:01:54 +00:00
|
|
|
initnatpmp(&natpmp);
|
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
if (proto == SWITCH_NAT_TCP) {
|
2009-06-05 15:01:54 +00:00
|
|
|
sendnewportmappingrequest(&natpmp, NATPMP_PROTOCOL_TCP, port, port, 31104000);
|
2009-05-30 00:14:57 +00:00
|
|
|
} else if(proto == SWITCH_NAT_UDP) {
|
2009-06-05 15:01:54 +00:00
|
|
|
sendnewportmappingrequest(&natpmp, NATPMP_PROTOCOL_UDP, port, port, 31104000);
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
fd_set fds;
|
2009-06-05 14:39:28 +00:00
|
|
|
struct timeval timeout = { 1, 0 };
|
2009-05-30 00:14:57 +00:00
|
|
|
FD_ZERO(&fds);
|
2009-06-05 15:01:54 +00:00
|
|
|
FD_SET(natpmp.s, &fds);
|
|
|
|
getnatpmprequesttimeout(&natpmp, &timeout);
|
2009-05-30 00:14:57 +00:00
|
|
|
select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
|
2009-06-05 15:01:54 +00:00
|
|
|
r = readnatpmpresponseorretry(&natpmp, &response);
|
2009-05-30 00:14:57 +00:00
|
|
|
} while(r == NATPMP_TRYAGAIN);
|
2009-05-30 01:03:55 +00:00
|
|
|
|
|
|
|
if (r == 0) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mapped public port %hu protocol %s to localport %hu\n",
|
|
|
|
response.pnu.newportmapping.mappedpublicport,
|
|
|
|
response.type == NATPMP_RESPTYPE_UDPPORTMAPPING ? "UDP" :
|
|
|
|
(response.type == NATPMP_RESPTYPE_TCPPORTMAPPING ? "TCP" : "UNKNOWN"),
|
|
|
|
response.pnu.newportmapping.privateport);
|
2009-06-05 02:30:44 +00:00
|
|
|
if (external_port) {
|
|
|
|
*external_port = response.pnu.newportmapping.mappedpublicport;
|
|
|
|
} else if (response.pnu.newportmapping.mappedpublicport != response.pnu.newportmapping.privateport) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "External port %hu protocol %s was not available, it was instead mapped to %hu",
|
|
|
|
response.pnu.newportmapping.privateport,
|
|
|
|
response.type == NATPMP_RESPTYPE_UDPPORTMAPPING ? "UDP" :
|
|
|
|
(response.type == NATPMP_RESPTYPE_TCPPORTMAPPING ? "TCP" : "UNKNOWN"),
|
|
|
|
response.pnu.newportmapping.mappedpublicport);
|
|
|
|
}
|
|
|
|
|
2009-05-30 01:03:55 +00:00
|
|
|
status = SWITCH_STATUS_SUCCESS;
|
|
|
|
}
|
2009-06-05 15:01:54 +00:00
|
|
|
|
|
|
|
closenatpmp(&natpmp);
|
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
static switch_status_t switch_nat_add_mapping_upnp(switch_port_t port, switch_nat_ip_proto_t proto)
|
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
char port_str[16];
|
2009-05-30 00:56:32 +00:00
|
|
|
int r = UPNPCOMMAND_UNKNOWN_ERROR;
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
sprintf(port_str, "%d", port);
|
|
|
|
|
|
|
|
if (proto == SWITCH_NAT_TCP) {
|
2009-05-30 03:24:10 +00:00
|
|
|
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str,
|
|
|
|
nat_globals.pvt_addr, "FreeSWITCH", "TCP", 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
} else if(proto == SWITCH_NAT_UDP) {
|
2009-05-30 03:24:10 +00:00
|
|
|
r = UPNP_AddPortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, port_str,
|
|
|
|
nat_globals.pvt_addr, "FreeSWITCH", "UDP", 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
2009-05-30 00:56:32 +00:00
|
|
|
if (r == UPNPCOMMAND_SUCCESS) {
|
2009-05-30 00:14:57 +00:00
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "mapped public port %s protocol %s to localport %s\n", port_str,
|
|
|
|
(proto == SWITCH_NAT_TCP) ? "TCP" : (proto == SWITCH_NAT_UDP ? "UDP" : "UNKNOWN"), port_str);
|
|
|
|
status = SWITCH_STATUS_SUCCESS;
|
|
|
|
}
|
2009-05-30 01:03:55 +00:00
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
static switch_status_t switch_nat_del_mapping_pmp(switch_port_t port, switch_nat_ip_proto_t proto)
|
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
natpmpresp_t response;
|
|
|
|
int r;
|
2009-06-05 15:01:54 +00:00
|
|
|
natpmp_t natpmp;
|
|
|
|
|
|
|
|
initnatpmp(&natpmp);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
if (proto == SWITCH_NAT_TCP) {
|
2009-06-05 15:01:54 +00:00
|
|
|
sendnewportmappingrequest(&natpmp, NATPMP_PROTOCOL_TCP, port, port, 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
} else if(proto == SWITCH_NAT_UDP) {
|
2009-06-05 15:01:54 +00:00
|
|
|
sendnewportmappingrequest(&natpmp, NATPMP_PROTOCOL_UDP, port, port, 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
fd_set fds;
|
|
|
|
struct timeval timeout;
|
|
|
|
FD_ZERO(&fds);
|
2009-06-05 15:01:54 +00:00
|
|
|
FD_SET(natpmp.s, &fds);
|
|
|
|
getnatpmprequesttimeout(&natpmp, &timeout);
|
2009-05-30 00:14:57 +00:00
|
|
|
select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
|
2009-06-05 15:01:54 +00:00
|
|
|
r = readnatpmpresponseorretry(&natpmp, &response);
|
2009-05-30 00:14:57 +00:00
|
|
|
} while(r == NATPMP_TRYAGAIN);
|
2009-05-30 01:03:55 +00:00
|
|
|
|
|
|
|
if (r == 0) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "unmapped public port %hu protocol %s to localport %hu\n",
|
2009-06-05 19:31:25 +00:00
|
|
|
response.pnu.newportmapping.privateport, /* This might be wrong but its so 0 isn't displayed */
|
2009-05-30 01:03:55 +00:00
|
|
|
response.type == NATPMP_RESPTYPE_UDPPORTMAPPING ? "UDP" :
|
|
|
|
(response.type == NATPMP_RESPTYPE_TCPPORTMAPPING ? "TCP" : "UNKNOWN"),
|
|
|
|
response.pnu.newportmapping.privateport);
|
|
|
|
status = SWITCH_STATUS_SUCCESS;
|
|
|
|
}
|
2009-06-05 15:01:54 +00:00
|
|
|
|
|
|
|
closenatpmp(&natpmp);
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
static switch_status_t switch_nat_del_mapping_upnp(switch_port_t port, switch_nat_ip_proto_t proto)
|
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
char port_str[16];
|
2009-05-30 00:56:32 +00:00
|
|
|
int r = UPNPCOMMAND_UNKNOWN_ERROR;
|
2009-05-30 00:14:57 +00:00
|
|
|
|
|
|
|
sprintf(port_str, "%d", port);
|
|
|
|
|
|
|
|
if (proto == SWITCH_NAT_TCP) {
|
2009-05-30 00:56:32 +00:00
|
|
|
r = UPNP_DeletePortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, "TCP", 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
} else if(proto == SWITCH_NAT_UDP) {
|
2009-05-30 00:56:32 +00:00
|
|
|
r = UPNP_DeletePortMapping(nat_globals.urls.controlURL, nat_globals.data.servicetype, port_str, "UDP", 0);
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
2009-05-30 00:56:32 +00:00
|
|
|
if (r == UPNPCOMMAND_SUCCESS) {
|
|
|
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "unmapped public port %s protocol %s to localport %s\n", port_str,
|
|
|
|
(proto == SWITCH_NAT_TCP) ? "TCP" : (proto == SWITCH_NAT_UDP ? "UDP" : "UNKNOWN"), port_str);
|
|
|
|
status = SWITCH_STATUS_SUCCESS;
|
|
|
|
}
|
2009-05-30 00:14:57 +00:00
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
2009-06-05 02:30:44 +00:00
|
|
|
SWITCH_DECLARE(switch_status_t) switch_nat_add_mapping(switch_port_t port, switch_nat_ip_proto_t proto, switch_port_t *external_port)
|
2009-05-30 00:14:57 +00:00
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
|
|
|
|
switch (nat_globals.nat_type) {
|
|
|
|
case SWITCH_NAT_TYPE_PMP:
|
2009-06-05 02:30:44 +00:00
|
|
|
status = switch_nat_add_mapping_pmp(port, proto, external_port);
|
2009-05-30 00:14:57 +00:00
|
|
|
break;
|
|
|
|
case SWITCH_NAT_TYPE_UPNP:
|
2009-06-05 02:30:44 +00:00
|
|
|
if ((status = switch_nat_add_mapping_upnp(port, proto)) && status == SWITCH_STATUS_SUCCESS) {
|
|
|
|
if (external_port) {
|
|
|
|
*external_port = port;
|
|
|
|
}
|
|
|
|
}
|
2009-05-30 00:14:57 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWITCH_DECLARE(switch_status_t) switch_nat_del_mapping(switch_port_t port, switch_nat_ip_proto_t proto)
|
|
|
|
{
|
|
|
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
|
|
|
|
|
|
|
switch (nat_globals.nat_type) {
|
|
|
|
case SWITCH_NAT_TYPE_PMP:
|
|
|
|
status = switch_nat_del_mapping_pmp(port, proto);
|
|
|
|
break;
|
|
|
|
case SWITCH_NAT_TYPE_UPNP:
|
|
|
|
status = switch_nat_del_mapping_upnp(port, proto);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWITCH_DECLARE(void) switch_nat_shutdown(void)
|
|
|
|
{
|
2009-06-05 15:01:54 +00:00
|
|
|
|
2009-05-30 00:14:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* For Emacs:
|
|
|
|
* Local Variables:
|
|
|
|
* mode:c
|
|
|
|
* indent-tabs-mode:t
|
|
|
|
* tab-width:4
|
|
|
|
* c-basic-offset:4
|
|
|
|
* End:
|
|
|
|
* For VIM:
|
|
|
|
* vim:set softtabstop=4 shiftwidth=4 tabstop=4:
|
|
|
|
*/
|