mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Don't hang up if the file is missing (not a bug, but fix anyway) (#1380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -979,10 +979,15 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
|
|||||||
if (announce) {
|
if (announce) {
|
||||||
int res2;
|
int res2;
|
||||||
res2 = ast_autoservice_start(qe->chan);
|
res2 = ast_autoservice_start(qe->chan);
|
||||||
if (!res2)
|
if (!res2) {
|
||||||
res2 = ast_streamfile(peer, announce, peer->language);
|
res2 = ast_streamfile(peer, announce, peer->language);
|
||||||
if (!res2)
|
if (!res2)
|
||||||
res2 = ast_waitstream(peer, "");
|
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);
|
res2 |= ast_autoservice_stop(qe->chan);
|
||||||
if (res2) {
|
if (res2) {
|
||||||
/* Agent must have hung up */
|
/* Agent must have hung up */
|
||||||
|
Reference in New Issue
Block a user