summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-11 04:31:33 +0000
committerMark Spencer <markster@digium.com>2003-04-11 04:31:33 +0000
commita6cc0b233e25040b9dd1cbea68aad4e952de8da1 (patch)
tree73b1a7dd8a9448c2c8eb9dd85c4c94bd2236ccc0 /channel.c
parent2cfa5ed89916d52a3ac873bd84b6cefe4de1d464 (diff)
When swapping subs, queue a null frame, extend delay for hangup-on-flash
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 032b693bc..49982d849 100755
--- a/channel.c
+++ b/channel.c
@@ -378,6 +378,8 @@ int ast_queue_frame(struct ast_channel *chan, struct ast_frame *fin, int lock)
if (write(chan->pvt->alertpipe[1], &blah, sizeof(blah)) != sizeof(blah))
ast_log(LOG_WARNING, "Unable to write to alert pipe on %s, frametype/subclass %d/%d (qlen = %d): %s!\n",
chan->name, f->frametype, f->subclass, qlen, strerror(errno));
+ } else if (chan->blocking) {
+ pthread_kill(chan->blocker, SIGURG);
}
if (lock)
ast_pthread_mutex_unlock(&chan->lock);