38 #ifndef FREESWITCH_NAT_H 39 #define FREESWITCH_NAT_H
void switch_nat_shutdown(void)
Shuts down the NAT Traversal System.
#define SWITCH_END_EXTERN_C
void switch_nat_reinit(void)
re-initializes NAT subsystem
switch_memory_pool_t * pool
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.
void switch_nat_set_mapping(switch_bool_t mapping)
Update the setting if port mapping will be created.
const char * switch_nat_get_type(void)
char * switch_nat_status(void)
Returns a list of nat mappings and other status info.
void switch_nat_init(switch_memory_pool_t *pool, switch_bool_t mapping)
Initilize the NAT Traversal System.
switch_bool_t switch_nat_is_initialized(void)
Has the NAT subsystem been initialized.
switch_status_t switch_nat_del_mapping(switch_port_t port, switch_nat_ip_proto_t proto)
Deletes a NAT mapping.
void switch_nat_late_init(void)
Initilize the rest of the NAT Traversal System.
switch_status_t
Common return values.
struct fspr_pool_t switch_memory_pool_t
void switch_nat_republish(void)
Republishes the nap mappings.
#define SWITCH_BEGIN_EXTERN_C