mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add stun to dingaling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1049 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -55,6 +55,9 @@ typedef void (*switch_rtp_invalid_handler)(switch_rtp *rtp_session,
|
||||
switch_sockaddr_t *from_addr);
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_rtp_init(switch_memory_pool *pool);
|
||||
SWITCH_DECLARE(switch_port_t) switch_rtp_request_port(void);
|
||||
|
||||
SWITCH_DECLARE(switch_rtp *)switch_rtp_new(char *rx_ip,
|
||||
switch_port_t rx_port,
|
||||
char *tx_ip,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
*/
|
||||
#ifndef _SWITCH_STUN_PARSER_H
|
||||
#define _SWITCH_STUN_PARSER_H
|
||||
|
||||
#define SWITCH_STUN_DEFAULT_PORT 3478
|
||||
#define SWITCH_STUN_PACKET_MIN_LEN 20
|
||||
|
||||
typedef enum {
|
||||
@@ -196,6 +196,23 @@ SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_username(switch_stun_pa
|
||||
*/
|
||||
SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_binded_address(switch_stun_packet_t *packet, char *ipstr, uint16_t port);
|
||||
|
||||
/*!
|
||||
\brief Perform a stun lookup
|
||||
\param ip the local ip to use (replaced with stun results)
|
||||
\param port the local port to use (replaced with stun results)
|
||||
\param stunip the ip of the stun server
|
||||
\param pool the memory pool to use
|
||||
\return SUCCESS or FAIL
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_stun_lookup (char **ip,
|
||||
switch_port_t *port,
|
||||
char *stunip,
|
||||
switch_port_t stunport,
|
||||
char **err,
|
||||
switch_memory_pool *pool);
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
\brief set a switch_stun_packet_attribute_t pointer to point at the first attribute in a packet
|
||||
\param packet the packet in question
|
||||
|
||||
Reference in New Issue
Block a user