提交 c0397d5a authored 作者: Moises Silva's avatar Moises Silva

freetdm: move queue dtmf to the private core

上级 ec4e2c5a
......@@ -772,6 +772,7 @@ FT_DECLARE(ftdm_chan_type_t) ftdm_channel_get_type(const ftdm_channel_t *ftdmcha
/*!
* \brief Dequeue DTMF from the given channel
* \note To transmit DTMF use ftdm_channel_command with command FTDM_COMMAND_SEND_DTMF
*
* \param ftdmchan The channel to dequeue DTMF from
* \param dtmf DTMF buffer to store the dtmf (you are responsible for its allocation and deallocation)
......@@ -781,17 +782,6 @@ FT_DECLARE(ftdm_chan_type_t) ftdm_channel_get_type(const ftdm_channel_t *ftdmcha
*/
FT_DECLARE(ftdm_size_t) ftdm_channel_dequeue_dtmf(ftdm_channel_t *ftdmchan, char *dtmf, ftdm_size_t len);
/*!
* \brief Enqueue a DTMF string into the channel
*
* \param ftdmchan The channel to enqueue the dtmf string to
* \param dtmf null-terminated DTMF string
*
* \retval FTDM_SUCCESS success
* \retval FTDM_FAIL failure
*/
FT_DECLARE(ftdm_status_t) ftdm_channel_queue_dtmf(ftdm_channel_t *ftdmchan, const char *dtmf);
/*!
* \brief Flush the DTMF queue
*
......
......@@ -547,6 +547,18 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_open_chan(ftdm_channel_t *ftdmchan);
*/
FT_DECLARE(ftdm_status_t) ftdm_span_next_event(ftdm_span_t *span, ftdm_event_t **event);
/*!
* \brief Enqueue a DTMF string into the channel
*
* \param ftdmchan The channel to enqueue the dtmf string to
* \param dtmf null-terminated DTMF string
*
* \retval FTDM_SUCCESS success
* \retval FTDM_FAIL failure
*/
FT_DECLARE(ftdm_status_t) ftdm_channel_queue_dtmf(ftdm_channel_t *ftdmchan, const char *dtmf);
/*!
\brief Assert condition
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论