From b4fd742c01f1407b1b4affae42020749244424c3 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 25 Jan 2019 11:08:03 +0100 Subject: [PATCH] hangup_channels : fix bug when asterisk display other thing than concise return ('Setting max files open to ...' for instance) --- hangup_channels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hangup_channels b/hangup_channels index 81b78be..14f2f52 100755 --- a/hangup_channels +++ b/hangup_channels @@ -68,7 +68,7 @@ then log DEBUG "Channels :\n$CHANNELS" [ -z "$CHANNELS" ] && log INFO "No current channels found for this peer" && exit 0 else - CHANNELS=$( asterisk -rx 'core show channels concise' ) + CHANNELS=$( asterisk -rx 'core show channels concise'|grep '!' ) log DEBUG "Channels :\n$CHANNELS" [ -z "$CHANNELS" ] && log INFO "No current channels found" && exit 0 fi