hangup_channels : fix bug when asterisk display other thing than concise return ('Setting max files open to ...' for instance)

This commit is contained in:
Benjamin Renard 2019-01-25 11:08:03 +01:00 committed by root
parent efc1e8a4e7
commit b4fd742c01

View file

@ -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