diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-12-06 07:36:02 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-12-06 07:38:39 -0600 |
commit | 93859f9acaf53ef9a6390ffb4f884d4666a4c77c (patch) | |
tree | 9c80abd1f96fc0b096af9aa1952f42eb1928de8e /main | |
parent | 8e6aedbdcde92661ac59ef383cd801f8414e229a (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/bridge_basic.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/bridge_basic.c b/main/bridge_basic.c index e0304aa3c..93da8cecb 100644 --- a/main/bridge_basic.c +++ b/main/bridge_basic.c @@ -3219,9 +3219,9 @@ static int grab_transfer(struct ast_channel *chan, char *exten, size_t exten_len } 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) { @@ -3308,6 +3308,9 @@ static int feature_attended_transfer(struct ast_bridge_channel *bridge_channel, /* 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", ast_channel_name(bridge_channel->chan), bridge->v_table->name); @@ -3477,6 +3480,9 @@ static int feature_blind_transfer(struct ast_bridge_channel *bridge_channel, voi 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 @@ static int feature_blind_transfer(struct ast_bridge_channel *bridge_channel, voi 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); |