mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
LOOK OUT BELOW... (FSCORE-381)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14055 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -64,13 +64,30 @@ SWITCH_DECLARE(void) switch_nat_init(switch_memory_pool_t *pool);
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_nat_shutdown(void);
|
||||
|
||||
/*!
|
||||
\brief Returns a list of nat mappings and other status info
|
||||
\note caller must free the string
|
||||
*/
|
||||
SWITCH_DECLARE(char *) switch_nat_status(void);
|
||||
|
||||
/*!
|
||||
\brief Republishes the nap mappings
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_nat_republish(void);
|
||||
|
||||
/*!
|
||||
\brief re-initializes NAT subsystem
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_nat_reinit(void);
|
||||
|
||||
/*!
|
||||
\brief Maps a port through the NAT Traversal System
|
||||
\param port Internal port to map
|
||||
\param proto Protocol
|
||||
\param external_port [out] Mapped external port
|
||||
\param sticky make the mapping permanent
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status_t) switch_nat_add_mapping(switch_port_t port, switch_nat_ip_proto_t proto, switch_port_t *external_port);
|
||||
SWITCH_DECLARE(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);
|
||||
/*!
|
||||
\brief Deletes a NAT mapping
|
||||
\param proto Protocol
|
||||
|
||||
@@ -1202,6 +1202,7 @@ typedef uint32_t switch_io_flag_t;
|
||||
SWITCH_EVENT_NOTIFY - Notification
|
||||
SWITCH_EVENT_SEND_MESSAGE - Message
|
||||
SWITCH_EVENT_RECV_MESSAGE - Message
|
||||
SWITCH_EVENT_NAT - NAT Management (new/del/status)
|
||||
SWITCH_EVENT_ALL - All events at once
|
||||
</pre>
|
||||
|
||||
@@ -1274,6 +1275,7 @@ typedef enum {
|
||||
SWITCH_EVENT_SEND_INFO,
|
||||
SWITCH_EVENT_RECV_INFO,
|
||||
SWITCH_EVENT_CALL_SECURE,
|
||||
SWITCH_EVENT_NAT,
|
||||
SWITCH_EVENT_ALL
|
||||
} switch_event_types_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user