Ready to scream here.. 1. After 6 months with Asterisk I'm STILL trying to understand the difference between a SIP user, friend and peer. 2. Exactly what resource does Asterisk use to send MWI to registered phones? I thought it was astdb? 3. It looks like it isn't astdb. It looks like it will only send MWI to a phone if it shows up in 'sip show peers'. 4. WHY then does a reload clear this list? Doesn't this list come from the astdb file? 5. Why is this such a damn mess? Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060321/952889fd/attachment.htm
User - sends you calls Peer - you send calls Friend - Both ways later, Paul Hales Technical Manager AsteriskIT ----- Original Message ----- From: Douglas Garstang To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Wednesday, March 22, 2006 5:07 AM Subject: [Asterisk-Users] Realtime / SIP Peers etc Ready to scream here.. 1. After 6 months with Asterisk I'm STILL trying to understand the difference between a SIP user, friend and peer. 2. Exactly what resource does Asterisk use to send MWI to registered phones? I thought it was astdb? 3. It looks like it isn't astdb. It looks like it will only send MWI to a phone if it shows up in 'sip show peers'. 4. WHY then does a reload clear this list? Doesn't this list come from the astdb file? 5. Why is this such a damn mess? 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060321/aa183280/attachment.htm
21 mar 2006 kl. 19.07 skrev Douglas Garstang:> Ready to scream here.. >No one is surprised ;-)> 1. After 6 months with Asterisk I'm STILL trying to understand the > difference between a SIP user, friend and peer.* A friend is a peer object and a user object. It's just a configuration shorthand, not a type. * A user is someone who uses your PBX to place calls, we match incoming calls on users. * A peer is someone we place calls to, outgoing calls. Peers register with Asterisk. So far, it's simple. In some cases however, the peer is used for incoming calls. This is mostly used when connecting to service providers.> 2. Exactly what resource does Asterisk use to send MWI to > registered phones? I thought it was astdb?How did you come to that conclusion? You can configure a mailbox for a peer. If you do, we send MWI to peers we have in memory, static peers or cached realtime peers.> 3. It looks like it isn't astdb. It looks like it will only send > MWI to a phone if it shows up in 'sip show peers'.Only peers we have in memory are supported for MWI and qualification.> 4. WHY then does a reload clear this list? Doesn't this list come > from the astdb file?I explained this in the bug tracker. Reload clears everything but registered static peers, these are re- configured from astdb. We do not support this for realtime peers.> 5. Why is this such a damn mess?I guess it's history. I am trying to clear this up. Follow my work in the test branch and the sippeers branch and you'll see that I've started cleaning this up. The "user" is disappearing and will in chan_sip3 be "device". Chan_sip3 will have these three objects: * Phone: A device that uses Asterisk as it's PBX for outgoing and incoming calls * Trunk: Another PBX or SIP proxy that we peer with * Service: A service we subscribe to, acting as a phone that connects to it /Olle
> -----Original Message----- > From: Olle E Johansson [mailto:oej@edvina.net] > Sent: Wednesday, March 22, 2006 8:41 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Realtime / SIP Peers etc > > > > 22 mar 2006 kl. 15.02 skrev Andrew Kohlsmith: > > > On Wednesday 22 March 2006 08:34, Olle E Johansson wrote: > >>> 4. WHY then does a reload clear this list? Doesn't this list come > >>> from the astdb file? > >> > >> I explained this in the bug tracker. > >> > >> Reload clears everything but registered static peers, these are re- > >> configured from astdb. > >> We do not support this for realtime peers. > > > > I have to agree with Douglas here -- why make the distinction? I > > don't > > understand it. Peers are peers, whether they come from a > flat file > > or from a > > DB. If a reload is performed, it should clear the entire > > registered list, or > > none of it. > > That would mean that we would have to go through each entry in the > realtime database at load time (or reload) and reconfigure the peers. > Is that something you want your asterisk to do? Considering this can > be 10.000 peers. > > > > > Your explanation in the bugtracker didn't make sense as to > why one is > > considered static or "more permanent" than the other. Peers are > > (or rather > > should be) peers, no matter where they come from. Is this > the plan > > with your > > sip3 work? > > > Static peers are static peers and dynamic peers are dynamic, > regardless of > storage. > > This is the way the dynamic peers work. They're not meant to occupy > memory. > If you need the properties of a static peer - why don't configure > them that way?I'm not sure I'm talking about the same thing, but if this is true, it may clear a few things up. Firstly, from what I've been told my Kevin Fleming on this list, and by calling Digium directly, support for multiple Asterisk systems accessing the same MySQL database for sip user/peer information, does not exist. Digium told me they where aware of it, and it would probably take a single person the better part of a year to fix. Given that, I wanted to use realtime to load and cache the peer information, and that's it. If Asterisk has to refer to the database each time a peer registers, it just plain doesn't work!> > /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 >