diff options
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 56cb5ebe1..fa13fd71d 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -2642,7 +2642,8 @@ static enum agi_result run_agi(struct ast_channel *chan, char *request, AGI *agi /* If it's voice, write it to the audio pipe */ if ((agi->audio > -1) && (f->frametype == AST_FRAME_VOICE)) { /* Write, ignoring errors */ - write(agi->audio, f->data.ptr, f->datalen); + if (write(agi->audio, f->data.ptr, f->datalen) < 0) { + } } ast_frfree(f); } |