From 1a3ca61248487afcb9f593b6fee88c4aad77ba62 Mon Sep 17 00:00:00 2001 From: Dave Fennell Date: Wed, 19 Dec 2012 10:09:50 +0000 Subject: [PATCH] Updated asterisk_channels plugin to connect to running asterisk (probably what was intended) instead of starting new process. --- plugins/asterisk/asterisk_channels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/asterisk/asterisk_channels b/plugins/asterisk/asterisk_channels index e02acf43..a8bcaefd 100755 --- a/plugins/asterisk/asterisk_channels +++ b/plugins/asterisk/asterisk_channels @@ -27,5 +27,5 @@ if [ "$1" = "config" ]; then exit 0 fi -asterisk -x "core show channels" | awk '/active channels/ { print "channels.value " $1 }' +asterisk -rx "core show channels" | awk '/active channels/ { print "channels.value " $1 }' exit 0