diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 01:38:47 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-13 01:38:47 +0000 |
commit | 471ba9658e1e88044c419e9740961620f3ef1545 (patch) | |
tree | ad7ef4ac83582f6e9e8b0e02e7746a6fbb49f569 /include/asterisk/rtp.h | |
parent | b2b23b395d856d8c40461ce058f870a02fd4305b (diff) |
allow users of RTP to use G726-32 AAL2 packing even when RFC3551 packing has been requested (Sipura/Grandstream ATAs and others will need this)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37501 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/rtp.h')
-rw-r--r-- | include/asterisk/rtp.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h index 5334b351c..bc539cb29 100644 --- a/include/asterisk/rtp.h +++ b/include/asterisk/rtp.h @@ -50,6 +50,10 @@ extern "C" { #define MAX_RTP_PT 256 +enum ast_rtp_options { + AST_RTP_OPT_G726_NONSTANDARD = (1 << 0), +}; + struct ast_rtp_protocol { /*! Get RTP struct, or NULL if unwilling to transfer */ struct ast_rtp *(* const get_rtp_info)(struct ast_channel *chan); @@ -141,7 +145,8 @@ void ast_rtp_pt_copy(struct ast_rtp *dest, const struct ast_rtp *src); 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); + char *mimeType, char *mimeSubtype, + enum ast_rtp_options options); /*! \brief Mapping between RTP payload format codes and Asterisk codes: */ struct rtpPayloadType ast_rtp_lookup_pt(struct ast_rtp* rtp, int pt); @@ -151,10 +156,12 @@ void ast_rtp_get_current_formats(struct ast_rtp* rtp, int* astFormats, int* nonAstFormats); /*! \brief Mapping an Asterisk code into a MIME subtype (string): */ -char* ast_rtp_lookup_mime_subtype(int isAstFormat, int code); +const char *ast_rtp_lookup_mime_subtype(int isAstFormat, int code, + enum ast_rtp_options options); /*! \brief Build a string of MIME subtype names from a capability list */ -char *ast_rtp_lookup_mime_multiple(char *buf, int size, const int capability, const int isAstFormat); +char *ast_rtp_lookup_mime_multiple(char *buf, size_t size, const int capability, + const int isAstFormat, enum ast_rtp_options options); void ast_rtp_setnat(struct ast_rtp *rtp, int nat); |