diff options
author | Mark Spencer <markster@digium.com> | 2003-08-30 00:48:37 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-30 00:48:37 +0000 |
commit | 2fbf9c9e161993768c7a778a61bbbe8ef3406211 (patch) | |
tree | 3497fbc62808cc661210a9530a748db995ead17c /channels | |
parent | f14004abfd974a328736442971caee22053cfeec (diff) |
Don't send until we're up
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_iax2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index fb0e683a8..81ee39d23 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -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); } |