From 98f1362ba841bde2124182b515b75cb32dc6af76 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Fri, 29 Jun 2012 12:10:28 +0300 Subject: [PATCH] Port to /bin/sh --- plugins/asterisk/asterisk_channels | 48 ++++++++++++++---------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/plugins/asterisk/asterisk_channels b/plugins/asterisk/asterisk_channels index 2eb995c6..44fbca2b 100644 --- a/plugins/asterisk/asterisk_channels +++ b/plugins/asterisk/asterisk_channels @@ -1,28 +1,26 @@ -#!/usr/bin/php - +asterisk -x "core show channels" | awk '/active channels/ { print "channels.value " $1 }' +exit 0