My output from a small asterisk system with 7 peers: pbx*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 854/854 xx.xx.xx.116 5060 OK (55 ms) 105/105 192.168.1.86 D 5060 Unmonitored 120/120 (Unspecified) D 0 Unmonitored 104/104 192.168.1.79 D 5060 Unmonitored 103/103 192.168.1.77 D 5060 Unmonitored 102/102 192.168.1.81 D 5060 Unmonitored 101/101 192.168.1.75 D 5060 Unmonitored 7 sip peers [7 online , 0 offline]
120 didn't register for a while (its a softphone on a laptop) therefore it's Unspecified, and because it's unmonitored, it's considered online. On 3/23/06, Douglas Garstang <[EMAIL PROTECTED]> wrote: > How does it do that? A 'sip show peers' doesn't show an IP address for the > peer. Does it store it internally, and not show you when do you a 'sip show > peers', or does it pull the IP address from astdb? > > > > -----Original Message----- > > From: C F [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 23, 2006 11:40 AM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] Ok... what is 'sip show peers' > > really used > > for? > > > > > > I use it to order pizza. Just kidding, but among others it tells you > > what IP address Asterisk knows for a peer, as well as the qualify > > status. > > > > On 3/23/06, Douglas Garstang <[EMAIL PROTECTED]> wrote: > > > 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). I cleared the fullcontact field > > in the database, and placed a call. The only place that > > Asterisk could get the peer's IP address from was astdb, as > > the peer wasn't in 'sip show peers' as I purposefully cleared > > the fullcontact field for all peers in the database. > > > > > > 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. > > > > > > 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. > > > > > > No wonder I'm confused. > > > > > > :( > > > > > > Doug. > > > _______________________________________________ > > > --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 > > > > > _______________________________________________ > > --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 > > > _______________________________________________ > --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 > _______________________________________________ --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