summaryrefslogtreecommitdiff
path: root/include/asterisk/sdp_options.h
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-04-26 16:22:38 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-05-02 10:59:53 -0500
commitcd272da7a8aa121113a7ca7e44d85eb88e721607 (patch)
tree67a315dbdadd0b7c8d010dccf4acaba4b9ceac4e /include/asterisk/sdp_options.h
parentdc948163cace1e71a8cbb069549a74ebf15b793c (diff)
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
Diffstat (limited to 'include/asterisk/sdp_options.h')
-rw-r--r--include/asterisk/sdp_options.h54
1 files changed, 34 insertions, 20 deletions
diff --git a/include/asterisk/sdp_options.h b/include/asterisk/sdp_options.h
index 3a1add37f..9c699a2f2 100644
--- a/include/asterisk/sdp_options.h
+++ b/include/asterisk/sdp_options.h
@@ -24,6 +24,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
*
* This is an enum because it will support a TRICKLE-ICE option
@@ -212,26 +226,6 @@ unsigned int ast_sdp_options_get_rtp_symmetric(const struct ast_sdp_options *opt
/*!
* \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
*
* \param options SDP Options
@@ -352,6 +346,26 @@ 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
*
* \param options SDP Options