mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 14:56:58 +00:00
Replace __ast_answer with ast_raw_answer in app_control_answer
While load testing an ARI application, I noticed asterisk was returning HTTP 500 internal server errors on channels/:id/answer. After talking to #asterisk-dev, the issue appeared to be a lack of media flowing after __ast_answer() was called. So now, we call ast_raw_answer instead and no longer wait for media. ASTERISK-23758 #close Review: https://reviewboard.asterisk.org/r/3549/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@414195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -38,10 +38,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
static int app_control_answer(struct stasis_app_control *control,
|
||||
struct ast_channel *chan, void *data)
|
||||
{
|
||||
const int delay = 0;
|
||||
ast_debug(3, "%s: Answering\n",
|
||||
stasis_app_control_get_channel_id(control));
|
||||
return __ast_answer(chan, delay);
|
||||
return ast_raw_answer(chan);
|
||||
}
|
||||
|
||||
int stasis_app_control_answer(struct stasis_app_control *control)
|
||||
|
Reference in New Issue
Block a user