mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 13:50:08 +00:00
Actually write audio to file in get_voice (bug #5547)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
app.c
7
app.c
@@ -210,6 +210,13 @@ int ast_app_getvoice(struct ast_channel *c, char *dest, char *dstfmt, char *prom
|
|||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
res = ast_writestream(writer, f);
|
||||||
|
if (res < 0) {
|
||||||
|
ast_log(LOG_WARNING, "Failed to write to stream at %s!\n", dest);
|
||||||
|
ast_frfree(f);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user