summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec L Davis <sivad.a@paradise.net.nz>2013-04-12 08:52:44 +0000
committerAlec L Davis <sivad.a@paradise.net.nz>2013-04-12 08:52:44 +0000
commite5b0de55352bce1d143f33a3ee3db1f8c8a2ea4b (patch)
tree0658c576aef98b3af5cc498c4a3f94de9b418ad0
parent3959535615ef417b9dc31a8d721401ca448ec8ba (diff)
IAX2 defer_full_frames fail to get sent
Ensure iax2_process_thread is signalled when a deferred frame is queued to it. (closes issue ASTERISK-18827) Reported by: alecdavis Tested by: alecdavis alecdavis (license 585) Review https://reviewboard.asterisk.org/r/2426/ ........ Merged revisions 385429 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 385430 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_iax2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index e6b40a7f5..c15aa85a2 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -9515,6 +9515,9 @@ static void defer_full_frame(struct iax2_thread *from_here, struct iax2_thread *
if (!cur_pkt_buf)
AST_LIST_INSERT_TAIL(&to_here->full_frames, pkt_buf, entry);
+ to_here->iostate = IAX_IOSTATE_READY;
+ ast_cond_signal(&to_here->cond);
+
ast_mutex_unlock(&to_here->lock);
}