mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
ACN: Add tracing to existing code
Prior to making any modifications to the pjsip infrastructure for ACN, I've added the tracing functions to the existing code. This should make the final commit easier to review, but we can also now run a "before and after" trace. No functional changes were made with this commit. Change-Id: Ia83a1a2687ccb96f2bc8a2a3928a5214c4be775c
This commit is contained in:
@@ -1673,6 +1673,7 @@ int ast_bridge_join(struct ast_bridge *bridge,
|
||||
{
|
||||
struct ast_bridge_channel *bridge_channel;
|
||||
int res = 0;
|
||||
SCOPE_TRACE(1, "%s Bridge: %s\n", ast_channel_name(chan), bridge->uniqueid);
|
||||
|
||||
bridge_channel = bridge_channel_internal_alloc(bridge);
|
||||
if (flags & AST_BRIDGE_JOIN_PASS_REFERENCE) {
|
||||
@@ -1921,6 +1922,7 @@ int ast_bridge_impart(struct ast_bridge *bridge,
|
||||
.done = 0,
|
||||
};
|
||||
int res;
|
||||
SCOPE_TRACE(1, "%s Bridge: %s\n", ast_channel_name(chan), bridge->uniqueid);
|
||||
|
||||
ast_mutex_init(&cond.lock);
|
||||
ast_cond_init(&cond.cond, NULL);
|
||||
@@ -1942,6 +1944,7 @@ int ast_bridge_depart(struct ast_channel *chan)
|
||||
{
|
||||
struct ast_bridge_channel *bridge_channel;
|
||||
int departable;
|
||||
SCOPE_TRACE(1, "%s\n", ast_channel_name(chan));
|
||||
|
||||
ast_channel_lock(chan);
|
||||
bridge_channel = ast_channel_internal_bridge_channel(chan);
|
||||
|
||||
Reference in New Issue
Block a user