summaryrefslogtreecommitdiff
path: root/include/asterisk/rtp.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-28 16:40:02 +0000
committerMark Spencer <markster@digium.com>2003-06-28 16:40:02 +0000
commitf5e13431a53e5ce6ebd93e447633b710ef639632 (patch)
tree350126d47aecc8eeeaca9794943d8d2640d37670 /include/asterisk/rtp.h
parent71c9cbb2b1bae41a2c02868f7fe75ea5d2577fe4 (diff)
Add SIP/RTP video support, video enable app_echo, start on RTCP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1128 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/rtp.h')
-rwxr-xr-xinclude/asterisk/rtp.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h
index c183cb1bd..cc8d24da7 100755
--- a/include/asterisk/rtp.h
+++ b/include/asterisk/rtp.h
@@ -37,8 +37,8 @@ extern "C" {
struct ast_rtp_protocol {
struct ast_rtp *(*get_rtp_info)(struct ast_channel *chan); /* Get RTP struct, or NULL if unwilling to transfer */
- int (*set_rtp_peer)(struct ast_channel *chan, struct ast_rtp *peer); /* Set RTP peer */
- int (*get_rtp_willing)(struct ast_channel *chan); /* Willing to native bridge */
+ struct ast_rtp *(*get_vrtp_info)(struct ast_channel *chan); /* Get RTP struct, or NULL if unwilling to transfer */
+ int (*set_rtp_peer)(struct ast_channel *chan, struct ast_rtp *peer, struct ast_rtp *vpeer); /* Set RTP peer */
char *type;
struct ast_rtp_protocol *next;
};
@@ -47,11 +47,11 @@ struct ast_rtp;
typedef int (*ast_rtp_callback)(struct ast_rtp *rtp, struct ast_frame *f, void *data);
-struct ast_rtp *ast_rtp_new(struct sched_context *sched, struct io_context *io);
+struct 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 *rpt, 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);
@@ -65,8 +65,12 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *f);
struct ast_frame *ast_rtp_read(struct ast_rtp *rtp);
+struct 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);