hangup_channels : fix bug when asterisk display other thing than concise return ('Setting max files open to ...' for instance)
This commit is contained in:
parent
efc1e8a4e7
commit
b4fd742c01
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue