#include <asterisk/frame.h>
#include <asterisk/io.h>
#include <asterisk/sched.h>
#include <asterisk/channel.h>
#include <netinet/in.h>
Include dependency graph for rtp.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | ast_rtp_protocol |
Defines | |
#define | AST_RTP_DTMF (1 << 0) |
#define | AST_RTP_CN (1 << 1) |
#define | AST_RTP_CISCO_DTMF (1 << 2) |
#define | AST_RTP_MAX AST_RTP_CISCO_DTMF |
Typedefs | |
typedef int(* | ast_rtp_callback )(struct ast_rtp *rtp, struct ast_frame *f, void *data) |
Functions | |
ast_rtp * | ast_rtp_new (struct sched_context *sched, struct io_context *io, int rtcpenable, int callbackmode) |
void | ast_rtp_set_peer (struct ast_rtp *rtp, struct sockaddr_in *them) |
void | ast_rtp_get_peer (struct ast_rtp *rtp, struct sockaddr_in *them) |
void | ast_rtp_get_us (struct ast_rtp *rtp, struct sockaddr_in *us) |
void | ast_rtp_destroy (struct ast_rtp *rtp) |
void | ast_rtp_set_callback (struct ast_rtp *rtp, ast_rtp_callback callback) |
void | ast_rtp_set_data (struct ast_rtp *rtp, void *data) |
int | ast_rtp_write (struct ast_rtp *rtp, struct ast_frame *f) |
ast_frame * | ast_rtp_read (struct ast_rtp *rtp) |
ast_frame * | ast_rtcp_read (struct ast_rtp *rtp) |
int | ast_rtp_fd (struct ast_rtp *rtp) |
int | ast_rtcp_fd (struct ast_rtp *rtp) |
int | ast_rtp_senddigit (struct ast_rtp *rtp, char digit) |
int | ast_rtp_settos (struct ast_rtp *rtp, int tos) |
void | ast_rtp_pt_clear (struct ast_rtp *rtp) |
void | ast_rtp_pt_default (struct ast_rtp *rtp) |
void | ast_rtp_set_m_type (struct ast_rtp *rtp, int pt) |
void | ast_rtp_set_rtpmap_type (struct ast_rtp *rtp, int pt, char *mimeType, char *mimeSubtype) |
rtpPayloadType | ast_rtp_lookup_pt (struct ast_rtp *rtp, int pt) |
int | ast_rtp_lookup_code (struct ast_rtp *rtp, int isAstFormat, int code) |
void | ast_rtp_get_current_formats (struct ast_rtp *rtp, int *astFormats, int *nonAstFormats) |
char * | ast_rtp_lookup_mime_subtype (int isAstFormat, int code) |
void | ast_rtp_setnat (struct ast_rtp *rtp, int nat) |
int | ast_rtp_bridge (struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc) |
int | ast_rtp_proto_register (struct ast_rtp_protocol *proto) |
void | ast_rtp_proto_unregister (struct ast_rtp_protocol *proto) |
void | ast_rtp_stop (struct ast_rtp *rtp) |
void | ast_rtp_init (void) |
void | ast_rtp_reload (void) |
|
DTMF (Cisco Proprietary) Definition at line 34 of file rtp.h. Referenced by ast_rtp_read(). |
|
'Comfort Noise' (RFC3389) Definition at line 32 of file rtp.h. Referenced by ast_rtp_read(). |
|
DTMF (RFC2833) Definition at line 30 of file rtp.h. Referenced by ast_rtp_read(). |
|
Maximum RTP-specific code |
|
Definition at line 49 of file rtp.h. Referenced by ast_rtp_set_callback(). |
|
Definition at line 111 of file rtp.c. References ast_rtp::rtcp, and ast_rtcp::s.
|
|
Definition at line 328 of file rtp.c. References AST_FRAME_NULL, ast_log(), CRASH, LOG_DEBUG, LOG_WARNING, ast_rtp::nat, option_debug, ast_rtp::rtcp, ast_rtcp::s, ast_rtp::them, and ast_rtcp::them.
|
|
Definition at line 1265 of file rtp.c. References AST_BRIDGE_DTMF_CHANNEL_0, AST_BRIDGE_DTMF_CHANNEL_1, ast_check_hangup(), AST_FRAME_DTMF, AST_FRAME_VIDEO, AST_FRAME_VOICE, ast_frfree(), ast_log(), ast_mutex_lock, ast_mutex_unlock, ast_read(), ast_rtp_get_peer(), ast_waitfor_n(), ast_write(), ast_frame::frametype, ast_channel::lock, LOG_DEBUG, LOG_WARNING, ast_channel::name, ast_channel_pvt::pvt, and ast_channel::pvt.
|
|
Definition at line 892 of file rtp.c. References ast_io_remove(), ast_smoother_free(), free, ast_rtp::io, ast_rtp::ioid, ast_rtp::rtcp, ast_rtcp::s, ast_rtp::s, and ast_rtp::smoother.
|
|
Definition at line 106 of file rtp.c. References ast_rtp::s.
|
|
Definition at line 672 of file rtp.c. References rtpPayloadType::code, ast_rtp::current_RTP_PT, rtpPayloadType::isAstFormat, and MAX_RTP_PT.
|
|
Definition at line 870 of file rtp.c. References ast_rtp::them. Referenced by ast_rtp_bridge().
|
|
Definition at line 877 of file rtp.c. References ast_rtp::us.
|
|
Definition at line 1496 of file rtp.c. References ast_rtp_reload(). Referenced by main().
|
|
Definition at line 701 of file rtp.c. References rtpPayloadType::code, ast_rtp::current_RTP_PT, rtpPayloadType::isAstFormat, MAX_RTP_PT, ast_rtp::rtp_lookup_code_cache_code, ast_rtp::rtp_lookup_code_cache_isAstFormat, and ast_rtp::rtp_lookup_code_cache_result. Referenced by ast_rtp_write().
|
|
Definition at line 736 of file rtp.c.
|
|
Definition at line 686 of file rtp.c. References ast_rtp_lookup_pt(), rtpPayloadType::code, rtpPayloadType::isAstFormat, and MAX_RTP_PT. Referenced by ast_rtp_lookup_pt(), and ast_rtp_read().
|
|
Definition at line 777 of file rtp.c. References ast_io_add(), AST_IO_IN, ast_log(), ast_rtp_pt_default(), free, LOG_WARNING, and malloc.
|
|
Definition at line 1236 of file rtp.c. References ast_log(), LOG_WARNING, ast_rtp_protocol::next, and ast_rtp_protocol::type.
|
|
Definition at line 1218 of file rtp.c. References ast_rtp_protocol::next.
|
|
Definition at line 614 of file rtp.c. References rtpPayloadType::code, ast_rtp::current_RTP_PT, rtpPayloadType::isAstFormat, MAX_RTP_PT, ast_rtp::rtp_lookup_code_cache_code, ast_rtp::rtp_lookup_code_cache_isAstFormat, and ast_rtp::rtp_lookup_code_cache_result.
|
|
Definition at line 628 of file rtp.c. References rtpPayloadType::code, ast_rtp::current_RTP_PT, rtpPayloadType::isAstFormat, MAX_RTP_PT, ast_rtp::rtp_lookup_code_cache_code, ast_rtp::rtp_lookup_code_cache_isAstFormat, and ast_rtp::rtp_lookup_code_cache_result. Referenced by ast_rtp_new().
|
|
Definition at line 391 of file rtp.c. References AST_FORMAT_ADPCM, AST_FORMAT_ALAW, AST_FORMAT_G723_1, AST_FORMAT_G726, AST_FORMAT_G729A, AST_FORMAT_GSM, AST_FORMAT_ILBC, AST_FORMAT_MAX_AUDIO, AST_FORMAT_SLINEAR, AST_FORMAT_SPEEX, AST_FORMAT_ULAW, AST_FRAME_NULL, AST_FRAME_VIDEO, AST_FRAME_VOICE, AST_FRIENDLY_OFFSET, ast_getformatname(), ast_log(), AST_RTP_CISCO_DTMF, AST_RTP_CN, AST_RTP_DTMF, ast_rtp_lookup_pt(), rtpPayloadType::code, CRASH, ast_frame::data, ast_frame::datalen, ast_frame::delivery, ast_rtp::dtmfcount, ast_rtp::f, ast_frame::frametype, rtpPayloadType::isAstFormat, ast_rtp::lasteventseqn, ast_rtp::lastividtimestamp, ast_rtp::lastrxformat, ast_rtp::lastrxts, LOG_DEBUG, LOG_NOTICE, LOG_WARNING, ast_frame::mallocd, ast_rtp::nat, ast_frame::offset, ast_rtp::rawdata, ast_rtp::resp, ast_rtp::s, ast_frame::samples, ast_frame::src, ast_frame::subclass, and ast_rtp::them.
|
|
Definition at line 1463 of file rtp.c. References ast_destroy(), ast_load(), ast_log(), ast_variable_retrieve(), ast_verbose(), LOG_WARNING, option_verbose, s, and VERBOSE_PREFIX_2. Referenced by ast_module_reload(), and ast_rtp_init().
|
|
Definition at line 932 of file rtp.c. References ast_log(), ast_rtp::dtmfmute, ast_rtp::lastts, LOG_NOTICE, LOG_WARNING, ast_rtp::s, ast_rtp::seqno, ast_rtp::ssrc, and ast_rtp::them.
|
|
Definition at line 159 of file rtp.c. References ast_rtp_callback, and ast_rtp::callback.
|
|
Definition at line 154 of file rtp.c. References ast_rtp::data.
|
|
Definition at line 645 of file rtp.c. References rtpPayloadType::code, ast_rtp::current_RTP_PT, and MAX_RTP_PT.
|
|
Definition at line 860 of file rtp.c. References ast_rtp::rtcp, ast_rtcp::them, and ast_rtp::them.
|
|
Definition at line 655 of file rtp.c. References ast_rtp::current_RTP_PT, MAX_RTP_PT, subtype, and type.
|
|
Definition at line 164 of file rtp.c. References ast_rtp::nat.
|
|
Definition at line 852 of file rtp.c. References ast_log(), LOG_WARNING, and ast_rtp::s.
|
|
Definition at line 882 of file rtp.c. References ast_rtp::rtcp, ast_rtcp::them, and ast_rtp::them.
|
|
Definition at line 1089 of file rtp.c. References AST_FORMAT_ADPCM, AST_FORMAT_ALAW, AST_FORMAT_G723_1, AST_FORMAT_G726, AST_FORMAT_G729A, AST_FORMAT_GSM, AST_FORMAT_H261, AST_FORMAT_H263, AST_FORMAT_ILBC, AST_FORMAT_SPEEX, AST_FORMAT_ULAW, AST_FRAME_VIDEO, AST_FRAME_VOICE, ast_frdup(), ast_getformatname(), ast_log(), ast_rtp_lookup_code(), ast_smoother_feed(), AST_SMOOTHER_FLAG_G729, ast_smoother_free(), ast_smoother_new(), ast_smoother_read(), ast_smoother_set_flags(), ast_frame::datalen, ast_frame::frametype, ast_rtp::lasttxformat, LOG_DEBUG, LOG_WARNING, ast_frame::offset, ast_rtp::smoother, ast_frame::subclass, and ast_rtp::them.
|