]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Sep 2008 21:55:33 +0000 (21:55 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 Sep 2008 21:55:33 +0000 (21:55 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9524 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c
src/switch_ivr_play_say.c

index 786a78a64ec54b0806ef861840645514688a0429..c4412e23ffa642a68bb3dfdb872ac5b6b56121c5 100644 (file)
@@ -1576,8 +1576,6 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro
 
        timeout = profile->digit_timeout;
        attempts = profile->max_login_attempts;
-       args.buf = &global_buf;
-       args.buflen = sizeof(global_buf);
        status = switch_ivr_phrase_macro(session, VM_HELLO_MACRO, NULL, NULL, &args);
        *global_buf = '\0';
 
index bf925e834794346085850bc2bcf0c3ba91e89be4..e0f2fcd8d2d0f70d71e131b6c30ede34c0fd0435 100644 (file)
@@ -265,7 +265,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
                                        } else {
                                                odata = expanded;
                                        }
-
+                                       
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Handle %s:[%s] (%s:%s)\n", func, odata, chan_lang, module_name);
 
                                        if (!strcasecmp(func, "play-file")) {
@@ -1234,7 +1234,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
   end:
        switch_safe_free(abuf);
 
-       switch_core_session_reset(session, SWITCH_TRUE);
+       switch_core_session_reset(session, SWITCH_FALSE);
        return status;
 }
 
@@ -1881,7 +1881,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text(switch_core_session_t *ses
 
        timer_name = switch_channel_get_variable(channel, "timer_name");
 
-       switch_core_session_reset(session, SWITCH_TRUE);
+       switch_core_session_reset(session, SWITCH_FALSE);
        read_codec = switch_core_session_get_read_codec(session);
 
        rate = read_codec->implementation->actual_samples_per_second;
@@ -1964,7 +1964,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_speak_text(switch_core_session_t *ses
                }
        }
 
-       switch_core_session_reset(session, SWITCH_TRUE);
+       switch_core_session_reset(session, SWITCH_FALSE);
        return status;
 }