diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-07 20:29:50 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-07 20:29:50 +0000 |
commit | 65ced02ec29d9717351ef5470f8b31e7a088cbb6 (patch) | |
tree | e67fddd1dbbd03aa8fb9d2c99ea7444fecc362c3 /channel.c | |
parent | ac713f322bd92759eb3c4ac51c8af4dbabfcd2c8 (diff) |
Add more debug messages for bridging
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@770 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1947,6 +1947,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags *fo = NULL; if (who) *rc = who; res = 0; + ast_log(LOG_DEBUG, "Bridge stops because we're zombie or need a soft hangup: c0=%s, c1=%s, flags: %s,%s,%s,%s\n",c0->name,c1->name,c0->zombie?"Yes":"No",ast_check_hangup(c0)?"Yes":"No",c1->zombie?"Yes":"No",ast_check_hangup(c1)?"Yes":"No"); break; } if (c0->pvt->bridge && @@ -1961,6 +1962,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags "Channel1: %s\r\n" "Channel2: %s\r\n", c0->name, c1->name); + ast_log(LOG_DEBUG, "Returning from native bridge, channels: %s, %s\n",c0->name ,c1->name); return 0; } /* If they return non-zero then continue on normally. Let "-2" mean don't worry about @@ -1992,6 +1994,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags *fo = NULL; *rc = who; res = 0; + ast_log(LOG_DEBUG, "Didn't get a frame from channel: %s\n",who->name); break; } @@ -1999,6 +2002,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags *fo = f; *rc = who; res = 0; + ast_log(LOG_DEBUG, "Got a FRAME_CONTROL frame on channel %s\n",who->name); break; } if ((f->frametype == AST_FRAME_VOICE) || @@ -2014,6 +2018,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags *fo = f; /* Take out of conference mode */ res = 0; + ast_lop(LOG_DEBUG, "Got AST_BRIDGE_DTMF_CHANNEL_0 on c0 (%s)\n",c0->name); break; } else goto tackygoto; @@ -2023,6 +2028,7 @@ int ast_channel_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags *rc = c1; *fo = f; res = 0; + ast_lop(LOG_DEBUG, "Got AST_BRIDGE_DTMF_CHANNEL_1 on c1 (%s)\n",c1->name); break; } else goto tackygoto; @@ -2056,6 +2062,7 @@ tackygoto: "Channel1: %s\r\n" "Channel2: %s\r\n", c0->name, c1->name); + ast_log(LOG_DEBUG, "Bridge stops bridging channels %s and %s\n",c0->name,c1->name); return res; } |