]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3529 please try this revision I suspect its related to some uninitilized memory...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 13:12:07 +0000 (08:12 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 13:12:16 +0000 (08:12 -0500)
src/mod/applications/mod_fax/mod_fax.c
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
src/mod/endpoints/mod_skypopen/mod_skypopen.c
src/switch_ivr.c
src/switch_ivr_async.c

index a899d270fc42f346a5a73afa04121325dc63530a..340a497a232028f9005ab72ebf6b608e225509ea 100644 (file)
@@ -1329,7 +1329,7 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
                        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);
index 8a31a9272d53081902d96e12c065164d59a12751..bed6c1021bb50057ba1446c56f2afa03c72f1981 100644 (file)
@@ -52,7 +52,7 @@ static void spandsp_dtmf_rx_realtime_callback(void *user_data, int code, int lev
        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;
index fe1f7cb8c0a0876bf9db2f849a241c50b84c2d64..4033577f7c1559ee85d10213fc264f751c60b7fd 100644 (file)
@@ -928,7 +928,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                        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);
index 4f095ff88601b6995af9c9a87764d34a8c1ee06f..a5d90d0c50ac0e53ea928e2e212c753daa417e37 100644 (file)
@@ -943,7 +943,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                                                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);
index 56397ede5c09f004a200db839d1c94190a4dac51..b7f4a38b71ceee9c180f2b1b1a2ccb633e3ac818 100644 (file)
@@ -241,7 +241,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
 
 
                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 
index c99d332c7f175b71eaf4977584192a96a530b0d0..b5d0591ec51815ccb6a9f5d23a0b89ca877ce982 100644 (file)
@@ -566,7 +566,7 @@ SWITCH_DECLARE(void) switch_ivr_session_echo(switch_core_session_t *session, swi
                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 
@@ -2154,7 +2154,7 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
                        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;
@@ -3188,7 +3188,7 @@ static void *SWITCH_THREAD_FUNC speech_thread(switch_thread_t *thread, void *obj
                                        }
 
                                        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;