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
Brancaleoni Matteo
2004-May-29 11:22 UTC
[Asterisk-Users] Odd behaviour with "asterisk -rx"
Hi> 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:why don't you use the manager interface? it's much better... Matteo -- Brancaleoni Matteo <mbrancaleoni@espia.it> Espia - Emmegi Srl
Yes, it's a known issue on the bug tracker (#1110), but no solution has been found to date, afaik. Julien Levi wrote:> 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 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Known issue bkw ----- Original Message ----- From: "Julien Levi" <jules@jlevi.co.uk> To: <asterisk-users@lists.digium.com> Sent: Saturday, May 29, 2004 12:12 PM Subject: [Asterisk-Users] Odd behaviour with "asterisk -rx"> 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 > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >