[Asterisk-code-review] bridge basic.c: Update transfer diagnostic messages addendum. (asterisk[13])

Jenkins2 asteriskteam at digium.com
Thu Dec 7 06:34:59 CST 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7450 )

Change subject: bridge_basic.c: Update transfer diagnostic messages addendum.
......................................................................

bridge_basic.c: Update transfer diagnostic messages addendum.

* Added start DTMF transfer verbose messages.
* Made associated transfer messages use a similar message format.
* Adjusted message verbose level as requested by initial reporter.

ASTERISK-27449

Change-Id: I2045714586414b3c5ef1f3cc56c1c4af4b31f551
---
M main/bridge_basic.c
1 file changed, 9 insertions(+), 3 deletions(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Matthew Fredrickson: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/main/bridge_basic.c b/main/bridge_basic.c
index e0304aa..93da8ce 100644
--- a/main/bridge_basic.c
+++ b/main/bridge_basic.c
@@ -3219,9 +3219,9 @@
 		} else if (!res) {
 			/* 0 for invalid extension dialed. */
 			if (ast_strlen_zero(exten)) {
-				ast_verb(4, "%s dialed no digits.\n", ast_channel_name(chan));
+				ast_verb(3, "Channel %s: Dialed no digits.\n", ast_channel_name(chan));
 			} else {
-				ast_verb(4, "%s dialed '%s@%s' does not exist.\n",
+				ast_verb(3, "Channel %s: Dialed '%s@%s' does not exist.\n",
 					ast_channel_name(chan), exten, context);
 			}
 			if (attempts < max_attempts) {
@@ -3307,6 +3307,9 @@
 
 	/* Inhibit the bridge before we do anything else. */
 	bridge = ast_bridge_channel_merge_inhibit(bridge_channel, +1);
+
+	ast_verb(3, "Channel %s: Started DTMF attended transfer.\n",
+		ast_channel_name(bridge_channel->chan));
 
 	if (strcmp(bridge->v_table->name, "basic")) {
 		ast_log(LOG_ERROR, "Channel %s: Attended transfer attempted on unsupported bridge type '%s'.\n",
@@ -3477,6 +3480,9 @@
 	const char *xfer_context;
 	char *goto_on_blindxfr;
 
+	ast_verb(3, "Channel %s: Started DTMF blind transfer.\n",
+		ast_channel_name(bridge_channel->chan));
+
 	ast_bridge_channel_write_hold(bridge_channel, NULL);
 
 	ast_channel_lock(bridge_channel->chan);
@@ -3500,7 +3506,7 @@
 		const char *chan_exten;
 		int chan_priority;
 
-		ast_debug(1, "After transfer, transferrer %s goes to %s\n",
+		ast_debug(1, "Channel %s: After transfer, transferrer goes to %s\n",
 			ast_channel_name(bridge_channel->chan), goto_on_blindxfr);
 
 		ast_channel_lock(bridge_channel->chan);

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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I2045714586414b3c5ef1f3cc56c1c4af4b31f551
Gerrit-Change-Number: 7450
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>
Gerrit-Reviewer: Niklas Larsson <niklas at tese.se>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171207/4a8abe7c/attachment.html>


More information about the asterisk-code-review mailing list