]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Flush DTMF Before Tone (MODAPP-312)
authorMichael Jerris <mike@jerris.com>
Mon, 27 Jul 2009 17:06:39 +0000 (17:06 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 27 Jul 2009 17:06:39 +0000 (17:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14380 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index bed51901c05af533ed8b7dbc4b7b625aa6493b58..d9305c2f0442917a531deebeb34c398249d81eac 100644 (file)
@@ -1112,6 +1112,7 @@ static switch_status_t create_file(switch_core_session_t *session, vm_profile_t
                *message_len = 0;
 
                if (macro_name) TRY_CODE(switch_ivr_phrase_macro(session, macro_name, NULL, NULL, NULL));
+               switch_channel_flush_dtmf(channel);
                TRY_CODE(switch_ivr_gentones(session, profile->tone_spec, 0, NULL));
 
                memset(&fh, 0, sizeof(fh));