[Freeswitch-svn] [commit] r4325 - freeswitch/trunk/src
Freeswitch SVN
mmurdock at freeswitch.org
Mon Feb 19 11:57:15 EST 2007
Author: mmurdock
Date: Mon Feb 19 11:57:14 2007
New Revision: 4325
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
No entry at menu should not play the invalid prompt but still count as an invalid entry and repeat the menu
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Mon Feb 19 11:57:14 2007
@@ -4406,13 +4406,12 @@
if (!match) {
if (*menu->buf) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IVR menu '%s' caught invalid input '%s'\n", menu->name, menu->buf);
- }
- else {
+ if (menu->invalid_sound) {
+ play_or_say(session, menu, menu->invalid_sound, 0);
+ }
+ } else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IVR menu '%s' no input detected\n", menu->name);
}
- if (menu->invalid_sound) {
- play_or_say(session, menu, menu->invalid_sound, 0);
- }
errs++;
if (status == SWITCH_STATUS_SUCCESS) {
status = switch_ivr_sleep(session, 1000);
More information about the Freeswitch-svn
mailing list