[Asterisk-cvs] asterisk/apps app_queue.c,1.54,1.55
markster at lists.digium.com
markster at lists.digium.com
Sat Apr 10 17:08:49 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv23466/apps
Modified Files:
app_queue.c
Log Message:
Don't hang up if the file is missing (not a bug, but fix anyway) (#1380)
Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- app_queue.c 8 Apr 2004 05:03:47 -0000 1.54
+++ app_queue.c 10 Apr 2004 21:10:22 -0000 1.55
@@ -979,10 +979,15 @@
if (announce) {
int res2;
res2 = ast_autoservice_start(qe->chan);
- if (!res2)
+ if (!res2) {
res2 = ast_streamfile(peer, announce, peer->language);
- if (!res2)
- res2 = ast_waitstream(peer, "");
+ if (!res2)
+ res2 = ast_waitstream(peer, "");
+ else {
+ ast_log(LOG_WARNING, "Announcement file '%s' is unavailable, continuing anyway...\n", announce);
+ res2 = 0;
+ }
+ }
res2 |= ast_autoservice_stop(qe->chan);
if (res2) {
/* Agent must have hung up */
More information about the svn-commits
mailing list