[Freeswitch-svn] [commit] r4118 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Sun Feb 4 14:38:13 EST 2007
Author: mikej
Date: Sun Feb 4 14:38:13 2007
New Revision: 4118
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
menu->inlen is allways max bound size +1 (for terminating null) so we need to pass -1 to play or say.
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Sun Feb 4 14:38:13 2007
@@ -4209,7 +4209,7 @@
memset(arg, 0, sizeof(arg));
memset(menu->buf, 0, menu->inlen);
- status = play_or_say(session, menu, greeting_sound, menu->inlen);
+ status = play_or_say(session, menu, greeting_sound, menu->inlen - 1);
if (!switch_strlen_zero(menu->buf)) {
for(ap = menu->actions; ap ; ap = ap->next) {
More information about the Freeswitch-svn
mailing list