app_record: Do not hang up if beep audio is missing
Additionally alter the warning to mention that it was "beep" which could not be streamed to give admins a better clue about what the warning means. ASTERISK-28682 Change-Id: If5aed21226a173117ed17589f44826dd1ba6576e
This commit is contained in:
parent
e89c8bc0d2
commit
2f8b20b949
|
@ -358,7 +358,8 @@ static int record_exec(struct ast_channel *chan, const char *data)
|
||||||
if (!res) {
|
if (!res) {
|
||||||
res = ast_waitstream(chan, "");
|
res = ast_waitstream(chan, "");
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", ast_channel_name(chan));
|
ast_log(LOG_WARNING, "ast_streamfile(beep) failed on %s\n", ast_channel_name(chan));
|
||||||
|
res = 0;
|
||||||
}
|
}
|
||||||
ast_stopstream(chan);
|
ast_stopstream(chan);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue