]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Removing an extraneous (and possibly misleading) log message. Firstly, if the announc...
authorMark Michelson <mmichelson@digium.com>
Thu, 30 Aug 2007 22:05:56 +0000 (22:05 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 30 Aug 2007 22:05:56 +0000 (22:05 +0000)
streaming functions will report it. Secondly, not all non-zero returns from play_file mean that the announce file
wasn't found. Positive return values simply mean that a digit was pressed (most likely to skip through the announcement).

(closes issue #10612, reported and patched by dimas)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81397 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index c2a375e0e5a1f4afe337f8d3836ce6bf0c10431c..884c10294b6b3e46bfadd56d8a1d8e4e3b020d82 100644 (file)
@@ -2541,8 +2541,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
                                        res2 |= ast_safe_sleep(peer, qe->parent->memberdelay * 1000);
                                }
                                if (!res2 && announce) {
-                                       if (play_file(peer, announce))
-                                               ast_log(LOG_WARNING, "Announcement file '%s' is unavailable, continuing anyway...\n", announce);
+                                       play_file(peer, announce);
                                }
                                if (!res2 && qe->parent->reportholdtime) {
                                        if (!play_file(peer, qe->parent->sound_reporthold)) {