Add some debug messages to make it clear what RTP bridging functionality is in use.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
Joshua Colp 12 years ago
parent e366c8c0a0
commit c780fd5498

@ -323,11 +323,15 @@ static int native_rtp_bridge_join(struct ast_bridge *bridge, struct ast_bridge_c
}
ast_rtp_instance_set_bridged(instance0, instance1);
ast_rtp_instance_set_bridged(instance1, instance0);
ast_debug(2, "Locally RTP bridged '%s' and '%s' in stack",
ast_channel_name(c0->chan), ast_channel_name(c1->chan));
break;
case AST_RTP_GLUE_RESULT_REMOTE:
glue0->update_peer(c0->chan, instance1, vinstance1, tinstance1, cap1, 0);
glue1->update_peer(c1->chan, instance0, vinstance0, tinstance0, cap0, 0);
ast_debug(2, "Remotely bridged '%s' and '%s' - media will flow directly between them\n",
ast_channel_name(c0->chan), ast_channel_name(c1->chan));
break;
case AST_RTP_GLUE_RESULT_FORBID:
break;
@ -378,6 +382,9 @@ static void native_rtp_bridge_leave(struct ast_bridge *bridge, struct ast_bridge
case AST_RTP_GLUE_RESULT_FORBID:
break;
}
ast_debug(2, "Discontinued RTP bridging of '%s' and '%s' - media will flow through Asterisk core\n",
ast_channel_name(c0->chan), ast_channel_name(c1->chan));
}
static int native_rtp_bridge_write(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, struct ast_frame *frame)

Loading…
Cancel
Save