if (digit_str[0]) {
char *p = digit_str;
while (p && *p) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
dtmf.digit = *p;
dtmf.duration = switch_core_default_dtmf_duration(0);
switch_channel_queue_dtmf(channel, &dtmf);
if (digit) {
/* prevent duplicate DTMF */
if (digit != pvt->last_digit || (pvt->samples - pvt->last_digit_end) > pvt->min_dup_digit_spacing) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(pvt->session), SWITCH_LOG_DEBUG, "DTMF BEGIN DETECTED: [%c]\n", digit);
pvt->last_digit = digit;
dtmf.digit = digit;
switch_channel_t *channel = switch_core_session_get_channel(session);
while (p && *p) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
dtmf.digit = *p;
dtmf.duration = SWITCH_DEFAULT_DTMF_DURATION;
switch_channel_queue_dtmf(channel, &dtmf);
if(channel){
while (p && *p) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
dtmf.digit = *p;
dtmf.duration = SWITCH_DEFAULT_DTMF_DURATION;
switch_channel_queue_dtmf(channel, &dtmf);
if (args) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
/*
dtmf handler function you can hook up to be executed when a digit is dialed during playback
switch_ivr_parse_all_events(session);
if (args && (args->input_callback || args->buf || args->buflen)) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
/*
dtmf handler function you can hook up to be executed when a digit is dialed during playback
if (digit_str[0]) {
char *p = digit_str;
while (p && *p) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
dtmf.digit = *p;
dtmf.duration = switch_core_default_dtmf_duration(0);
dtmf.source = SWITCH_DTMF_INBAND_AUDIO;
}
if (is_dtmf(c)) {
- switch_dtmf_t dtmf;
+ switch_dtmf_t dtmf = {0};
dtmf.digit = c;
dtmf.duration = switch_core_default_dtmf_duration(0);
dtmf.source = SWITCH_DTMF_INBAND_AUDIO;