Get queue name channel name sort by longest waiting
asterisk -x " queue show " | grep SIP | awk '{print $2 " " $4} ' | sort -k 2 -rn
SIP/voipessential-in-00000022 24:17,
SIP/voipessential-in-00000023 9:32,
SIP/voipessential-in-00000025 3:20,
SIP/voipessential-in-00000024 3:25
asterisk -x " queue show" | grep has | awk -Fhas '{print $1}'
9000
6000
7000
7205007949
8000
SIP/voipessential-in-00000022
Find if a channel is in an specific queue
asterisk -x " queue show 7205007949" | grep 'SIP/voipessential-in-00000022' | awk '{print $2}'
SIP/voipessential-in-00000022
No hay comentarios:
Publicar un comentario