[Freeswitch-svn] [commit] r4119 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Sun Feb 4 14:53:35 EST 2007
Author: mikej
Date: Sun Feb 4 14:53:35 2007
New Revision: 4119
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
small fix to dtmf handling in ivr menus
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Sun Feb 4 14:53:35 2007
@@ -4121,6 +4121,7 @@
uint32_t len;
char *ptr;
switch_status_t status = SWITCH_STATUS_FALSE;
+ switch_input_args_t args= {0};
if (session != NULL && menu != NULL && !switch_strlen_zero(sound)) {
memset(menu->buf, 0, menu->inlen);
@@ -4133,17 +4134,13 @@
len = menu->inlen;
ptr = menu->ptr;
}
+ args.buf = ptr;
+ args.buflen = len;
if (*sound == '/' || *sound == '\\') {
- switch_input_args_t args = {0};
- args.buf = ptr;
- args.buflen = need ? 1 : 0;
status = switch_ivr_play_file(session, NULL, sound, &args);
} else {
if (menu->tts_engine && menu->tts_voice) {
- switch_input_args_t args = {0};
- args.buf = ptr;
- args.buflen = len;
status = switch_ivr_speak_text(session, menu->tts_engine, menu->tts_voice, 0, sound, &args);
}
}
More information about the Freeswitch-svn
mailing list