[Asterisk-Users] Ok... what is 'sip show peers' really used for?

Olle E Johansson oej at edvina.net
Thu Mar 23 11:56:56 MST 2006


23 mar 2006 kl. 19.16 skrev Douglas Garstang:

> I'd love to understand what the function of the peer list returned  
> by 'sip show peers' is for, especially when Realtime is used.
>
> If I start Asterisk with realtime enabled, a 'sip show peers'  
> yields none. As each peer (phone) registers, or a call is made to  
> the peer, Asterisk adds them to the list returned by 'sip show  
> peers'. Correct?
>
> Apparently Asterisk doesn't refer to thie list however, when  
> deciding where a peer is located. It uses astdb instead (I have  
> rtcachefriends=yes).

NO. We don't use astDB during operations, only at reload of  
registered static peers. I said it before, didn't I?
>
>
> So... what's the point of this? Is it used for anything? It looks  
> like it uses it for voicemail, but that's it. Ie if the peer isn't  
> in 'sip show peers' then voicemail does not get delivered, EVEN if  
> it's in astdb.
sip show peers shows the in-memory peers, static peers or cached  
realtime peers. Those get
MWI notification and qualify= checks. This is documented in many places.

>
> Also, if all my phones are defined as friends, why does a 'sip show  
> friends' return a smaller list than 'sip show peers'??? If the  
> phones are all defined as friends, which are both peer and user,  
> then a 'sip show friends' should return all the phones, but it does  
> not.
>
"Sip show friends" should generate an error message, since that  
command does not exist.


/O



More information about the asterisk-users mailing list