summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-12-20 17:52:31 +0000
committerMark Spencer <markster@digium.com>2005-12-20 17:52:31 +0000
commit0d32a85be14fe0352aaeb106843e98fc7cf1723a (patch)
tree7245c62b654dba30ee2e30e15f9e0849dd1839ee /include/asterisk
parent93d1d0dcfb9cd92a04b19a9cc73438665101a727 (diff)
Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/frame.h4
-rw-r--r--include/asterisk/rtp.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 62c0b0dc0..c0815732b 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -452,6 +452,10 @@ extern int ast_codec_get_samples(struct ast_frame *f);
/*! \brief Returns the number of bytes for the number of samples of the given format */
extern int ast_codec_get_len(int format, int samples);
+/*! \brief Appends a frame to the end of a list of frames, truncating the maximum length of the list */
+extern struct ast_frame *ast_frame_enqueue(struct ast_frame *head, struct ast_frame *f, int maxlen, int dupe);
+
+
/*! \brief Gets duration in ms of interpolation frame for a format */
static inline int ast_codec_interp_len(int format)
{
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h
index bdb0391fd..9654806eb 100644
--- a/include/asterisk/rtp.h
+++ b/include/asterisk/rtp.h
@@ -135,7 +135,6 @@ void ast_rtp_set_rtpmap_type(struct ast_rtp* rtp, int pt,
/* Mapping between RTP payload format codes and Asterisk codes: */
struct 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_offered_from_local(struct ast_rtp* rtp, int local);
void ast_rtp_get_current_formats(struct ast_rtp* rtp,
int* astFormats, int* nonAstFormats);
@@ -154,6 +153,8 @@ int ast_rtp_proto_register(struct ast_rtp_protocol *proto);
void ast_rtp_proto_unregister(struct ast_rtp_protocol *proto);
+int ast_rtp_make_compatible(struct ast_channel *dest, struct ast_channel *src);
+
void ast_rtp_stop(struct ast_rtp *rtp);
void ast_rtp_init(void);