git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1028
d0543943-73ff-0310-b7d9-
9358b9ac24b2
* switch_rtp.c -- RTP
*
*/
-#ifdef RTPW_USE_WINSOCK2
-# define DICT_FILE "words.txt"
-#else
-# define DICT_FILE "/usr/share/dict/words"
-#endif
#define USEC_RATE (5e5)
#define MAX_WORD_LEN 128
#define ADDR_IS_MULTICAST(a) IN_MULTICAST(htonl(a))
#include <datatypes.h>
#include <srtp.h>
-
#define rtp_header_len 12
typedef srtp_hdr_t rtp_hdr_t;
char body[RTP_MAX_BUF_LEN];
} rtp_msg_t;
-
struct switch_rtp {
switch_socket_t *sock;
}
-
SWITCH_DECLARE(int) switch_rtp_zerocopy_read(switch_rtp *rtp_session, void **data, int *payload_type)
{
switch_size_t bytes;
{
return rtp_session->private_data;
}
-