[Asterisk-Users] Odd behaviour with "asterisk -rx"

Julien Levi jules at jlevi.co.uk
Sat May 29 11:12:08 MST 2004


Hello,

I was planning to use the output of asterisk -rx "show queues"  in a 
script when I noticed that sometimes asterisk only outputs the first 
line of the response. e.g:

debian:/# asterisk -rx "zap show channels"
Chan Extension  Context         Language   MusicOnHold
debian:/# asterisk -rx "zap show channels"
Chan Extension  Context         Language   MusicOnHold
debian:/# asterisk -rx "zap show channels"
Chan Extension  Context         Language   MusicOnHold
    1            incoming
    2            incoming
    4            incoming
    5            incoming
debian:/# asterisk -rx "show queues"
bookingsq    has 1 calls (max 100) in 'ringall' strategy (9s holdtime), 
C:28, A:3, SL:57.1% within 20s
debian:/# asterisk -rx "show queues"
bookingsq    has 1 calls (max 100) in 'ringall' strategy (9s holdtime), 
C:28, A:3, SL:57.1% within 20s
    Members:
       SIP/agent2 (dynamic) has taken 11 calls (last was 386 secs ago)
       SIP/agent1 (dynamic) has taken 16 calls (last was 1566 secs ago)
    Callers:
       1. Zap/4-1 (wait: 0:08)

debian:/#

I'm on asterisk 1.0_stable - has this been fixed in head, is it a known 
issue? I was unable to find anything about it in a search of previous 
list posts...

regards,

Julien Levi




More information about the asterisk-users mailing list