summaryrefslogtreecommitdiff
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-07-26 15:49:18 +0000
committerRussell Bryant <russell@russellbryant.com>2007-07-26 15:49:18 +0000
commitf8483a0d04f73e9d4c4f665efd5397cf96b17510 (patch)
treede4bd130dafa592858306d2ac6bcc5f85fd51cc8 /channels/chan_phone.c
parent51e7035dfeca1def3070ca65f18153ee1d340ba9 (diff)
Do a massive conversion for using the ast_verb() macro
(closes issue #10277, patches by mvanbaak) Basically, this changes ... if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3, "Something\n"); to ... ast_verb(3, "Something\n"); git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r--channels/chan_phone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index cf68d1d7f..a3f82bb5b 100644
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -382,8 +382,7 @@ static int phone_hangup(struct ast_channel *ast)
memset(p->ext, 0, sizeof(p->ext));
((struct phone_pvt *)(ast->tech_pvt))->owner = NULL;
ast_module_unref(ast_module_info->self);
- if (option_verbose > 2)
- ast_verbose( VERBOSE_PREFIX_3 "Hungup '%s'\n", ast->name);
+ ast_verb(3, "Hungup '%s'\n", ast->name);
ast->tech_pvt = NULL;
ast_setstate(ast, AST_STATE_DOWN);
restart_monitor();