mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
SDP: Replace SDP telephone_event option with dtmf option
The telephone_event option was used as a flag and a bit mapped value in different places when it is a boolean. It is also inadequate to configure the DTMF operation of the RTP instance created for the stream. Change-Id: Ib1addeaf0ce86f07039f2f979cab29405dc5239b
This commit is contained in:
@@ -23,6 +23,20 @@
|
||||
|
||||
struct ast_sdp_options;
|
||||
|
||||
/*!
|
||||
* \brief SDP DTMF mode options
|
||||
*/
|
||||
enum ast_sdp_options_dtmf {
|
||||
/*! No DTMF to be used */
|
||||
AST_SDP_DTMF_NONE,
|
||||
/*! Use RFC 4733 events for DTMF */
|
||||
AST_SDP_DTMF_RFC_4733,
|
||||
/*! Use DTMF in the audio stream */
|
||||
AST_SDP_DTMF_INBAND,
|
||||
/*! Use SIP 4733 if supported by the other side or INBAND if not */
|
||||
AST_SDP_DTMF_AUTO,
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief ICE options
|
||||
*
|
||||
@@ -210,26 +224,6 @@ void ast_sdp_options_set_rtp_symmetric(struct ast_sdp_options *options,
|
||||
*/
|
||||
unsigned int ast_sdp_options_get_rtp_symmetric(const struct ast_sdp_options *options);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Set SDP Options telephone_event
|
||||
*
|
||||
* \param options SDP Options
|
||||
* \param telephone_event
|
||||
*/
|
||||
void ast_sdp_options_set_telephone_event(struct ast_sdp_options *options,
|
||||
unsigned int telephone_event);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Get SDP Options telephone_event
|
||||
*
|
||||
* \param options SDP Options
|
||||
*
|
||||
* \returns telephone_event
|
||||
*/
|
||||
unsigned int ast_sdp_options_get_telephone_event(const struct ast_sdp_options *options);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Set SDP Options rtp_ipv6
|
||||
@@ -350,6 +344,26 @@ void ast_sdp_options_set_cos_video(struct ast_sdp_options *options,
|
||||
*/
|
||||
unsigned int ast_sdp_options_get_cos_video(const struct ast_sdp_options *options);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Set SDP Options dtmf
|
||||
*
|
||||
* \param options SDP Options
|
||||
* \param dtmf
|
||||
*/
|
||||
void ast_sdp_options_set_dtmf(struct ast_sdp_options *options,
|
||||
enum ast_sdp_options_dtmf dtmf);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Get SDP Options dtmf
|
||||
*
|
||||
* \param options SDP Options
|
||||
*
|
||||
* \returns dtmf
|
||||
*/
|
||||
enum ast_sdp_options_dtmf ast_sdp_options_get_dtmf(const struct ast_sdp_options *options);
|
||||
|
||||
/*!
|
||||
* \since 15.0.0
|
||||
* \brief Set SDP Options ice
|
||||
|
Reference in New Issue
Block a user