Index: bridges/bridge_multiplexed.c =================================================================== --- bridges/bridge_multiplexed.c (revision 245673) +++ bridges/bridge_multiplexed.c (working copy) @@ -202,6 +202,8 @@ struct multiplexed_thread *multiplexed_thread = data; int fds = multiplexed_thread->pipe[0]; +ast_log(LOG_ERROR, "klaus multiplexed_thread_function on data %p\n", data); + ao2_lock(multiplexed_thread); ast_debug(1, "Starting actual thread for multiplexed thread '%p'\n", multiplexed_thread); @@ -230,6 +232,7 @@ } } if (winner && winner->bridge) { +ast_log(LOG_ERROR, "klaus multiplexed_thread_function 2 on data %p\n", data); ast_bridge_handle_trip(winner->bridge, NULL, winner, -1); } } Index: main/bridging.c =================================================================== --- main/bridging.c (revision 245673) +++ main/bridging.c (working copy) @@ -279,6 +279,7 @@ if (chan && !bridge_channel) { bridge_channel = find_bridge_channel(bridge, chan); } +ast_log(LOG_ERROR, "klaus ast_bridge_handle_trip on bridge %p, bridge_channel %p\n", bridge, bridge_channel); /* If a bridge channel with actual channel is present read a frame and handle it */ if (chan && bridge_channel) { @@ -324,6 +325,9 @@ /*! \brief Generic thread loop, TODO: Rethink this/improve it */ static int generic_thread_loop(struct ast_bridge *bridge) { + +ast_log(LOG_ERROR, "klaus generic_thread_loop of bridge %p\n", bridge); + while (!bridge->stop && !bridge->refresh && bridge->array_num) { struct ast_channel *winner = NULL; int to = -1; @@ -343,6 +347,7 @@ ao2_lock(bridge); /* Process whatever they did */ +ast_log(LOG_ERROR, "klaus generic_thread_loop 2 of bridge %p\n", bridge); ast_bridge_handle_trip(bridge, NULL, winner, -1); } @@ -700,6 +705,8 @@ int fds[4] = { -1, }, nfds = 0, i = 0, outfd = -1, ms = -1; struct ast_channel *chan = NULL; +ast_log(LOG_ERROR, "klaus bridge_channel_join_multithreaded for bridge_channel %p of bridge %p\n", bridge_channel, bridge_channel->bridge); + /* Add any file descriptors we may want to monitor */ if (bridge_channel->bridge->technology->fd) { for (i = 0; i < 4; i ++) { @@ -725,6 +732,7 @@ ao2_lock(bridge_channel->bridge); if (!bridge_channel->suspended) { +ast_log(LOG_ERROR, "klaus bridge_channel_join_multithreaded 2 for bridge_channel %p of bridge %p\n", bridge_channel, bridge_channel->bridge); ast_bridge_handle_trip(bridge_channel->bridge, bridge_channel, chan, outfd); }