FreeSWITCH API Documentation  1.7.0
Enumerations | Functions
switch_nat.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  switch_nat_type_t { SWITCH_NAT_TYPE_NONE, SWITCH_NAT_TYPE_PMP, SWITCH_NAT_TYPE_UPNP }
 
enum  switch_nat_ip_proto_t { SWITCH_NAT_UDP, SWITCH_NAT_TCP }
 

Functions

const char * switch_nat_get_type (void)
 
void switch_nat_init (switch_memory_pool_t *pool, switch_bool_t mapping)
 Initilize the NAT Traversal System. More...
 
void switch_nat_late_init (void)
 Initilize the rest of the NAT Traversal System. More...
 
void switch_nat_shutdown (void)
 Shuts down the NAT Traversal System. More...
 
char * switch_nat_status (void)
 Returns a list of nat mappings and other status info. More...
 
void switch_nat_republish (void)
 Republishes the nap mappings. More...
 
void switch_nat_reinit (void)
 re-initializes NAT subsystem More...
 
void switch_nat_set_mapping (switch_bool_t mapping)
 Update the setting if port mapping will be created. More...
 
switch_status_t switch_nat_add_mapping (switch_port_t port, switch_nat_ip_proto_t proto, switch_port_t *external_port, switch_bool_t sticky)
 Maps a port through the NAT Traversal System. More...
 
switch_bool_t switch_nat_is_initialized (void)
 Has the NAT subsystem been initialized. More...
 
switch_status_t switch_nat_del_mapping (switch_port_t port, switch_nat_ip_proto_t proto)
 Deletes a NAT mapping. More...