mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
Coverity Report: Fix issues for error type CHECKED_RETURN for core
(issue ASTERISK-19658) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/1905/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@366094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4631,7 +4631,9 @@ 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) {
|
||||
play_file(peer, announce);
|
||||
if (play_file(peer, announce) < 0) {
|
||||
ast_log(LOG_ERROR, "play_file failed for '%s' on %s\n", announce, peer->name);
|
||||
}
|
||||
}
|
||||
if (!res2 && qe->parent->reportholdtime) {
|
||||
if (!play_file(peer, qe->parent->sound_reporthold)) {
|
||||
@@ -4642,11 +4644,15 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
|
||||
holdtimesecs = abs((now - qe->start) % 60);
|
||||
if (holdtime > 0) {
|
||||
ast_say_number(peer, holdtime, AST_DIGIT_ANY, peer->language, NULL);
|
||||
play_file(peer, qe->parent->sound_minutes);
|
||||
if (play_file(peer, qe->parent->sound_minutes) < 0) {
|
||||
ast_log(LOG_ERROR, "play_file failed for '%s' on %s\n", qe->parent->sound_minutes, peer->name);
|
||||
}
|
||||
}
|
||||
if (holdtimesecs > 1) {
|
||||
ast_say_number(peer, holdtimesecs, AST_DIGIT_ANY, peer->language, NULL);
|
||||
play_file(peer, qe->parent->sound_seconds);
|
||||
if (play_file(peer, qe->parent->sound_seconds) < 0) {
|
||||
ast_log(LOG_ERROR, "play_file failed for '%s' on %s\n", qe->parent->sound_seconds, peer->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user