[Asterisk-code-review] stasis bridge.c: Update stasis bridge push diagnostic messages. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Fri Apr 15 20:06:20 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/2625

Change subject: stasis_bridge.c: Update stasis bridge push diagnostic messages.
......................................................................

stasis_bridge.c: Update stasis bridge push diagnostic messages.

Change-Id: I195b14994c9dcccb9452491ca20a885d2a54605a
---
M res/stasis/stasis_bridge.c
1 file changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/2625/1

diff --git a/res/stasis/stasis_bridge.c b/res/stasis/stasis_bridge.c
index e410881..d2c014d 100644
--- a/res/stasis/stasis_bridge.c
+++ b/res/stasis/stasis_bridge.c
@@ -167,10 +167,15 @@
 
 	if (!control && !stasis_app_channel_is_internal(bridge_channel->chan)) {
 		/* channel not in Stasis(), get it there */
+		ast_debug(1, "Bridge %s: pushing non-stasis %p(%s) setup to come back in under stasis\n",
+			self->uniqueid, bridge_channel, ast_channel_name(bridge_channel->chan);
+
 		/* Attach after-bridge callback and pass ownership of swap_app to it */
 		if (ast_bridge_set_after_callback(bridge_channel->chan,
 			bridge_stasis_run_cb, NULL, NULL)) {
-			ast_log(LOG_ERROR, "Failed to set after bridge callback\n");
+			ast_log(LOG_ERROR,
+				"Failed to set after bridge callback for bridge %s non-stasis push of %s\n",
+				self->uniqueid, ast_channel_name(bridge_channel->chan));
 			return -1;
 		}
 

-- 
To view, visit https://gerrit.asterisk.org/2625
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I195b14994c9dcccb9452491ca20a885d2a54605a
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list