summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-11-30 10:48:13 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-11-30 10:48:13 -0600
commiteec82c6221935ebcc88da8c606481258d3322ad5 (patch)
tree18b3d9bad2a7ac06e313478345a9b5bf5c8d719d /include/asterisk
parent3d43e5ed3c95a2ea8ad8b66f79d664a3f294b1b2 (diff)
parentcf6d13180effc92a2483dccc68f2f188689a40fa (diff)
Merge "chan_pjsip: fix switching sending codec when asymmetric_rtp_codec=no" into 13
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/channel.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index c9e537fc3..bb24da205 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -2013,6 +2013,21 @@ int ast_prod(struct ast_channel *chan);
int ast_set_read_format_path(struct ast_channel *chan, struct ast_format *raw_format, struct ast_format *core_format);
/*!
+ * \brief Set specific write path on channel.
+ * \since 13.13.0
+ *
+ * \param chan Channel to setup write path.
+ * \param core_format What the core wants to write.
+ * \param raw_format Raw write format.
+ *
+ * \pre chan is locked
+ *
+ * \retval 0 on success.
+ * \retval -1 on error.
+ */
+int ast_set_write_format_path(struct ast_channel *chan, struct ast_format *core_format, struct ast_format *raw_format);
+
+/*!
* \brief Sets read format on channel chan from capabilities
* Set read format for channel to whichever component of "format" is best.
* \param chan channel to change