From 1c156b82d16bf1fa2013cafe900f3081415aab9a Mon Sep 17 00:00:00 2001 From: Matteo Brancaleoni Date: Sun, 16 Feb 2003 06:00:12 +0000 Subject: Sun Feb 16 07:00:01 CET 2003 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@616 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/rtp.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/asterisk') diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h index 8137eb38d..30639a5cd 100755 --- a/include/asterisk/rtp.h +++ b/include/asterisk/rtp.h @@ -17,6 +17,7 @@ #include #include #include +#include #include @@ -24,6 +25,14 @@ extern "C" { #endif +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 */ + char *type; + struct ast_rtp_protocol *next; +}; + struct ast_rtp; typedef int (*ast_rtp_callback)(struct ast_rtp *rtp, struct ast_frame *f, void *data); @@ -58,6 +67,12 @@ int rtp2ast(int id); char *ast2rtpn(int id); +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); + #if defined(__cplusplus) || defined(c_plusplus) } #endif -- cgit v1.2.3