summaryrefslogtreecommitdiff
path: root/apps/app_zapras.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r--apps/app_zapras.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c
index de682f72c..9e841603c 100644
--- a/apps/app_zapras.c
+++ b/apps/app_zapras.c
@@ -153,7 +153,8 @@ static void run_ras(struct ast_channel *chan, char *args)
if (!res) {
/* Check for hangup */
if (chan->_softhangup && !signalled) {
- ast_log(LOG_DEBUG, "Channel '%s' hungup. Signalling RAS at %d to die...\n", chan->name, pid);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Channel '%s' hungup. Signalling RAS at %d to die...\n", chan->name, pid);
kill(pid, SIGTERM);
signalled=1;
}