[asterisk-commits] mmichelson: branch 1.4 r89618 - /branches/1.4/apps/app_playback.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 26 17:10:49 CST 2007
Author: mmichelson
Date: Mon Nov 26 17:10:49 2007
New Revision: 89618
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89618
Log:
After issuing a "say load new", if a caller hangs up during the middle of playback of a number,
app_playback will continue to try to play the remaining files. With this change, no more files will
be played back upon hangup.
(closes issue #11345, reported and patched by IgorG)
Modified:
branches/1.4/apps/app_playback.c
Modified: branches/1.4/apps/app_playback.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_playback.c?view=diff&rev=89618&r1=89617&r2=89618
==============================================================================
--- branches/1.4/apps/app_playback.c (original)
+++ branches/1.4/apps/app_playback.c Mon Nov 26 17:10:49 2007
@@ -192,7 +192,7 @@
AST_LIST_INSERT_HEAD(&head, n, entries);
/* scan the body, one piece at a time */
- while ( ret <= 0 && (x = strsep(&rule, ",")) ) { /* exit on key */
+ while ( !ret && (x = strsep(&rule, ",")) ) { /* exit on key */
char fn[128];
const char *p, *fmt, *data; /* format and data pointers */
@@ -241,6 +241,10 @@
strcpy(fn2 + l, data);
ret = do_say(a, fn2, options, depth);
}
+
+ if (ret) {
+ break;
+ }
}
}
ast_var_delete(n);
More information about the asterisk-commits
mailing list