summaryrefslogtreecommitdiff
path: root/include/asterisk/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/codec.h')
-rw-r--r--include/asterisk/codec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/codec.h b/include/asterisk/codec.h
index 2ae955181..2f5756cd1 100644
--- a/include/asterisk/codec.h
+++ b/include/asterisk/codec.h
@@ -166,6 +166,17 @@ int ast_codec_get_max(void);
const char *ast_codec_media_type2str(enum ast_media_type type);
/*!
+ * \brief Conversion function to take a media string and convert it to a media type
+ *
+ * \param media_type_str The media type string
+ *
+ * \retval The ast_media_type that corresponds to the string
+ *
+ * \since 15.0.0
+ */
+enum ast_media_type ast_media_type_from_str(const char *media_type_str);
+
+/*!
* \brief Get the number of samples contained within a frame
*
* \param frame The frame itself