mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
freetdm: add pvt data to freetdm channels
fix fxs features
This commit is contained in:
@@ -658,6 +658,24 @@ FT_DECLARE(ftdm_status_t) ftdm_span_get_sig_status(ftdm_span_t *span, ftdm_signa
|
||||
/*! \brief Get span signaling status (ie: whether protocol layer is up or down) */
|
||||
FT_DECLARE(void) ftdm_channel_clear_detected_tones(ftdm_channel_t *ftdmchan);
|
||||
|
||||
/*!
|
||||
* \brief Set user private data in the channel
|
||||
*
|
||||
* \param ftdmchan The channel where the private data will be stored
|
||||
* \param pvt The private pointer to store
|
||||
*
|
||||
*/
|
||||
FT_DECLARE(void) ftdm_channel_set_private(ftdm_channel_t *ftdmchan, void *pvt);
|
||||
|
||||
/*!
|
||||
* \brief Get user private data in the channel
|
||||
*
|
||||
* \param ftdmchan The channel to retrieve the private data
|
||||
* \retval The private data (if any or NULL if no data has been stored)
|
||||
*
|
||||
*/
|
||||
FT_DECLARE(void *) ftdm_channel_get_private(const ftdm_channel_t *ftdmchan);
|
||||
|
||||
/*!
|
||||
* \brief Remove the given token from the channel
|
||||
*
|
||||
|
@@ -407,6 +407,7 @@ struct ftdm_channel {
|
||||
uint8_t txgain_table[FTDM_GAINS_TABLE_SIZE];
|
||||
float rxgain;
|
||||
float txgain;
|
||||
void *user_private;
|
||||
};
|
||||
|
||||
struct ftdm_span {
|
||||
|
Reference in New Issue
Block a user