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

Karl Brose
Sat, 29 May 2004 11:29:48 -0000

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
>