summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-13 06:00:20 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-13 06:00:20 +0000
commit4ebaef0e1cf0718219b5a31ec182582e4f31b47e (patch)
treef000e1e3d7222acbc97fd66eed3436cc5dde90e3 /include
parent66a57e51e328a0c0b855184c15096758401c0dac (diff)
Thu Mar 13 07:00:01 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/rtp.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h
index 7a00d27c4..769656cd0 100755
--- a/include/asterisk/rtp.h
+++ b/include/asterisk/rtp.h
@@ -70,20 +70,22 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit);
int ast_rtp_settos(struct ast_rtp *rtp, int tos);
// Setting RTP payload types from lines in a SDP description:
-void rtp_pt_init(struct ast_rtp* rtp);
-void rtp_set_m_type(struct ast_rtp* rtp, int pt);
-void rtp_set_rtpmap_type(struct ast_rtp* rtp, int pt,
+void ast_rtp_pt_clear(struct ast_rtp* rtp);
+/* Set payload types to defaults */
+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);
// Mapping between RTP payload format codes and Asterisk codes:
-struct rtpPayloadType rtp_lookup_pt(struct ast_rtp* rtp, int pt);
-int rtp_lookup_code(struct ast_rtp* rtp, int isAstFormat, int code);
+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 rtp_get_current_formats(struct ast_rtp* rtp,
+void ast_rtp_get_current_formats(struct ast_rtp* rtp,
int* astFormats, int* nonAstFormats);
// Mapping an Asterisk code into a MIME subtype (string):
-char* rtp_lookup_mime_subtype(int isAstFormat, int code);
+char* ast_rtp_lookup_mime_subtype(int isAstFormat, int code);
void ast_rtp_setnat(struct ast_rtp *rtp, int nat);