]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: move queue dtmf to the private core
authorMoises Silva <moy@sangoma.com>
Tue, 8 Jun 2010 04:16:40 +0000 (00:16 -0400)
committerMoises Silva <moy@sangoma.com>
Tue, 8 Jun 2010 18:14:14 +0000 (14:14 -0400)
libs/freetdm/src/include/freetdm.h
libs/freetdm/src/include/private/ftdm_core.h

index d7ed586dee9896dd7186f0fec46f1a4b721b5024..3acbc1e93a3f578ae9489f0eed0082b4a8943f11 100644 (file)
@@ -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
  *
index cb5bdafc5e5dbebf59870021035f85fdeba751ce..0dad0209edf4cc290bb8b90d46937414714e5c04 100644 (file)
@@ -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
 */