freetdm: support for dtmf_on_start

This commit is contained in:
David Yat Sin
2012-02-07 14:28:47 -05:00
parent d2c9fb5f7d
commit 1377b9c84d
4 changed files with 37 additions and 8 deletions

View File

@@ -487,6 +487,7 @@ typedef struct ftdm_channel_config {
float rxgain;
float txgain;
uint8_t debugdtmf;
uint8_t dtmf_on_start;
uint32_t dtmfdetect_ms;
uint8_t iostats;
} ftdm_channel_config_t;

View File

@@ -362,6 +362,8 @@ typedef struct {
typedef struct {
uint32_t duration_ms;
ftdm_time_t start_time;
/* If set to 1, we will send DTMF event the the tone starts, instead of waiting for end */
uint8_t trigger_on_start;
} ftdm_dtmf_detect_t;
/* 2^8 table size, one for each byte (sample) value */