From 28ba7f80f3445171a935ace000b5b0f01a672ad5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 10 Sep 2008 21:55:33 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9524 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 -- src/switch_ivr_play_say.c | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 786a78a64e..c4412e23ff 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -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'; diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index bf925e8347..e0f2fcd8d2 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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; }