[Asterisk-Users] Problem with show channels
Douglas Garstang
dgarstang at oneeighty.com
Fri Jan 6 12:20:29 MST 2006
I have a question on this. It isn't readily obvious to me, upon issueing a 'sip show channels' command which call legs are related to which call.
For example:
*CLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Form Hold Last Message
192.168.10.121 a00090601 29a98b1708f 00102/00000 g729 No Tx: ACK
192.168.10.4 a00090301 c08e095b-c1 00101/00001 g729 No Rx: ACK
Apart from the fact it's obvious here because there's one call, how can you determine that these are the same call? The 'show channels' command is a little easier, but still cryptic. It appears that the format isn't standard and interpreting this from a script would be difficult. It would be nice if some identifier was printed. Maybe 'From number' and 'To number' or the call-id for the call.
*CLI> show channels
Channel Location State Application(Data)
SIP/a00090601-14cf (None) Up Bridged Call(SIP/a00090301-403
SIP/a00090301-4033 3250076 at Company1:1 Up Dial(SIP/a00090601|20|tr)
2 active channels
1 active call
-----Original Message-----
From: Kevin P. Fleming [mailto:kpfleming at digium.com]
Sent: Friday, January 06, 2006 12:05 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Problem with show channels
Jerry Geis wrote:
> Is there another wayin the manager API I'm not aware of to get this
> information?
No, I was mistaken. Matt Florell's response about using 'show channels
concise' is probably the best way to go, since it produces output
designed for automated interpretation.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list