aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-11 21:17:33 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-11 21:17:33 +0000
commit79ceb3394c6a53b407617e66a6c257f36f42198b (patch)
treef8a4386a1f8bc16a6504dc4fbc74e246165eef98 /channel.c
parent8dca428ff0bf3f2cf4b8f70e17d9dc35c1294b19 (diff)
More debugging and fix it properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1294 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index c5dd1d8b1..05cffdfc2 100755
--- a/channel.c
+++ b/channel.c
@@ -2010,6 +2010,8 @@ static int ast_do_masquerade(struct ast_channel *original)
/* Signal any blocker */
if (original->blocking)
pthread_kill(original->blocker, SIGURG);
+ ast_log(LOG_DEBUG, "Done Masquerading %s (%d)\n",
+ original->name, original->_state);
return 0;
}
@@ -2102,7 +2104,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
for (/* ever */;;) {
/* Stop if we're a zombie or need a soft hangup */
- if (c0->zombie || ast_check_hangup(c0) || c1->zombie || ast_check_hangup(c1)) {
+ if (c0->zombie || ast_check_hangup_locked(c0) || c1->zombie || ast_check_hangup_locked(c1)) {
*fo = NULL;
if (who) *rc = who;
res = 0;