summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2009-04-01 13:59:34 +0000
committerMark Michelson <mmichelson@digium.com>2009-04-01 13:59:34 +0000
commitf1707e95e5188f9788a6a9461c3640b01e381989 (patch)
tree197b3b0c9b5f4f2853c362655ed1962fe18a4093
parent083e57a5e5299ab53287237e6658b0110f4b5fbd (diff)
Address Russell's comments regarding rev 185704.
Use ast_debug and ast_softhangup_nolock. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@185777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/manager.c b/main/manager.c
index 57f081ab0..e5dbc3a92 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1787,13 +1787,11 @@ static int action_hangup(struct mansession *s, const struct message *m)
return 0;
}
if (causecode > 0) {
- if (option_debug >= 1) {
- ast_log(LOG_DEBUG, "Setting hangupcause of channel %s to %d (is %d now)\n",
+ ast_debug(1, "Setting hangupcause of channel %s to %d (is %d now)\n",
c->name, causecode, c->hangupcause);
- }
c->hangupcause = causecode;
}
- ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
+ ast_softhangup_nolock(c, AST_SOFTHANGUP_EXPLICIT);
ast_channel_unlock(c);
astman_send_ack(s, m, "Channel Hungup");
return 0;