From: Russell Bryant Date: Tue, 4 Jan 2005 05:59:49 +0000 (+0000) Subject: Make sure to wake up sleeper on sip transfer issue (bug #2938) X-Git-Tag: 1.0.11.1~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7a75c886aa0a550ec49e7ebecc2e9b81f635b6;p=thirdparty%2Fasterisk.git Make sure to wake up sleeper on sip transfer issue (bug #2938) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4654 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 6ccb788f4b..a90aed5485 100755 --- a/channel.c +++ b/channel.c @@ -2387,8 +2387,10 @@ int ast_do_masquerade(struct ast_channel *original) ast_channel_free(clone); manager_event(EVENT_FLAG_CALL, "Hangup", "Channel: %s\r\n", zombn); } else { + struct ast_frame null_frame = { AST_FRAME_NULL, }; ast_log(LOG_DEBUG, "Released clone lock on '%s'\n", clone->name); clone->zombie=1; + ast_queue_frame(clone, &null_frame); ast_mutex_unlock(&clone->lock); }