You can try
asterisk -rx "core show channels" and parse to output
________________________________
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at lists.digium.com] On Behalf Of Gustavo A Gonzalez
Sent: Friday, June 06, 2008 12:23 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Zap channels state
Hello people! I want to know if is there a shell, php script that show me which
channels on a PRI line are onhook/offhook? Thanks for any help.
Gustavo A. Gonz?lez
Dto. de Infraestructura
Despegar.com, Inc.
ggonzalez at despegar.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080606/960f218f/attachment.htm