Douglas Garstang
2006-Mar-23 11:16 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
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.
Aaron Daniel
2006-Mar-23 11:19 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
> I'd love to understand what the function of the peer list returned by 'sip show peers' is for, especially when Realtime is used.Well, we use sip show peers when qualify=yes so we can monitor when a phone goes offline and so we can just look there for the ip address of phones. -- Aaron Daniel Computer Systems Technician Sam Houston State University amdtech@shsu.edu (936) 294-4198
C F
2006-Mar-23 11:39 UTC
[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 <dgarstang@oneeighty.com> 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 >
Olle E Johansson
2006-Mar-23 11:56 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
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
Douglas Garstang
2006-Mar-23 12:12 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
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:shmaltz@gmail.com] > 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 <dgarstang@oneeighty.com> 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 >
Douglas Garstang
2006-Mar-23 12:19 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
> -----Original Message----- > From: Olle E Johansson [mailto:oej@edvina.net] > Sent: Thursday, March 23, 2006 11:57 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Ok... what is 'sip show peers' > really used > for? > > > > 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?I don't know. Did you? A reload of registered, static peers.... how?> > > > > > 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.I have seen different. I quite clearly performed a test where sipusers and sippeers pointed to MySQL. Astdb was populated, and sip peers was not yet. MWI did not work. Upon new voicemail deposit, mwi did not work. I reverted back to sip.conf, astdb was still populated, and sip peers was then immediately populated (as realtime was disabled). Upon new voicemail deposit, mwi did work.> > > > > 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.My bad. I meant 'sip show users'.... same question remains. Why doesn't 'sip show users' show the same output as 'sip show peers' then?> > > /O > _______________________________________________ > --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 >
Douglas Garstang
2006-Mar-23 12:56 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
My bad. Ignore this reply.> -----Original Message----- > From: Douglas Garstang > Sent: Thursday, March 23, 2006 12:12 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] Ok... what is 'sip show peers' > really used > for? > > > 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:shmaltz@gmail.com] > > 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 <dgarstang@oneeighty.com> 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 >
Douglas Garstang
2006-Mar-23 12:57 UTC
[Asterisk-Users] Ok... what is 'sip show peers' really used for?
Hang on a minute.... If the astdb file is not used when realtime is in effect, how the heck can I make calls to phones that aren't in the 'sip show peers' list? (hint: I CAN make calls to phones not in the peer list, but in astdb)> -----Original Message----- > From: Olle E Johansson [mailto:oej@edvina.net] > Sent: Thursday, March 23, 2006 11:57 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Ok... what is 'sip show peers' > really used > for? > > > > 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 > _______________________________________________ > --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 >