mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
Don't send until we're up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2551,6 +2551,8 @@ static int iax2_write(struct ast_channel *c, struct ast_frame *f)
|
||||
/* If we're quelching voice, don't bother sending it */
|
||||
if ((f->frametype == AST_FRAME_VOICE) && i->quelch)
|
||||
return 0;
|
||||
if (!(i->state & IAX_STATE_STARTED))
|
||||
return 0;
|
||||
/* Simple, just queue for transmission */
|
||||
return iax2_send(i, f, 0, -1, 0, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user