aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/rtp.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 16:40:02 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-06-28 16:40:02 +0000
commit63170c4333b792805df5170e43d516b479a75421 (patch)
tree350126d47aecc8eeeaca9794943d8d2640d37670 /include/asterisk/rtp.h
parentefde31a9908909b35ee154afe257030a56a6c520 (diff)
Add SIP/RTP video support, video enable app_echo, start on RTCP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1128 f38db490-d61c-443f-a65b-d21fe96a405b
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);