So, here’s the output of running the ‘sip show channels’ command on Asterisk.
*CLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Last Msg
192.168.10.4 1303337250 12b7a057485 00102/00000 ulaw Tx: ACK
192.168.10.13 3250071 eea28bc4-20 00101/00102 ulaw Rx: ACK
One call is in progress and it’s fairly easy to see. However, what tells you that these two legs of the call are part of the same call? I can’t see anything linking them together. If I look at the SIP packets, the call-id that gets used in the SIP setup is the first one. There’s no mention of the second call-id! Huh???
When you have a lot of these, it’s going to become impossible to tell which legs of the call are parts of which call. Seems this area could do with some cleaning up, and someone could make the output a bit more friendly.
The same goes for the ‘sip show peers’ command. It doesn’t tell you if the peer has authenticated or not, as far as I can see, so you don’t know if your phone has registered or not.
I think Asterisk needs some work in it’s CLI to make it a bit more readable/functional.