Is there any way to get Asterisk to reload the /var/lib/asterisk/astdb file? It seems to only read it on startup. Thanks.
Douglas Garstang wrote:> Is there any way to get Asterisk to reload the /var/lib/asterisk/astdb file? > It seems to only read it on startup. > > Thanks. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersIt depends what you mean by "reload". The file is opened when Asterisk is started, and then anything can use the astdb. How it's used is up to what is using it. You need to be more descriptive. What data do you need to "reload" from the astdb? Joshua Colp
Joshua, I'd like issue a command, that would cause Asterisk to re-read it, and refresh what it has in memory. Douglas.> -----Original Message----- > From: Joshua Colp [mailto:jcolp@digium.com] > Sent: Thursday, March 30, 2006 12:46 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Reload astdb? > > > Douglas Garstang wrote: > > Is there any way to get Asterisk to reload the > /var/lib/asterisk/astdb file? > > It seems to only read it on startup. > > > > Thanks. > > _______________________________________________ > > --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 > It depends what you mean by "reload". The file is opened when > Asterisk > is started, and then anything can use the astdb. How it's > used is up to > what is using it. You need to be more descriptive. What data > do you need > to "reload" from the astdb? > > Joshua Colp > _______________________________________________ > --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 >
> -----Original Message----- > From: Kevin P. Fleming [mailto:kpfleming@digium.com] > Sent: Thursday, March 30, 2006 1:46 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Reload astdb? > > > Joshua Colp wrote: > > > It depends what you mean by "reload". The file is opened > when Asterisk > > is started, and then anything can use the astdb. How it's > used is up to > > what is using it. You need to be more descriptive. What > data do you need > > to "reload" from the astdb? > > And even more importantly... there is no value in 'reloading' > the astdb > unless something outside of Asterisk is modifying it, which is most > definitely not supported (and not safe to do).Not supported - Understood. No value - Disagree. There's no way to replicate registration info between Asterisk boxes. A static, pre-loaded astdb file with all phones, that Asterisk sees when it starts would be great. A dynamic one that can be modified (by some outside process) while asterisk is running would be even better. Doug.
> -----Original Message----- > From: Joshua Colp [mailto:jcolp@digium.com] > Sent: Thursday, March 30, 2006 1:48 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Reload astdb? > > > Douglas Garstang wrote: > > Joshua, > > > > I'd like issue a command, that would cause Asterisk to > re-read it, and refresh what it has in memory. > > > > Douglas. > > > >> -----Original Message----- > >> From: Joshua Colp [mailto:jcolp@digium.com] > >> Sent: Thursday, March 30, 2006 12:46 PM > >> To: Asterisk Users Mailing List - Non-Commercial Discussion > >> Subject: Re: [Asterisk-Users] Reload astdb? > >> > >> > >> Douglas Garstang wrote: > >>> Is there any way to get Asterisk to reload the > >> /var/lib/asterisk/astdb file? > >>> It seems to only read it on startup. > >>> > >>> Thanks. > >>> _______________________________________________ > >>> --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 > >> It depends what you mean by "reload". The file is opened when > >> Asterisk > >> is started, and then anything can use the astdb. How it's > >> used is up to > >> what is using it. You need to be more descriptive. What data > >> do you need > >> to "reload" from the astdb? > >> > >> Joshua Colp > >> _______________________________________________ > >> --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 > This doesn't answer the original question - why do you need > to reload it?Because Asterisk cannot replicate registration information between servers.
> This doesn't answer the original question - why do you need to reloadit?>I'll give you an example. An Active<->Active asterisk cluster. In the event one of the servers dies, the other server can take over without loosing registrations. Since most of the SIP clients know how to use DNS failovers its up to asterisk to do its part :) I don't understand why cat we use realtime for it? For sites that need to chare registrations (for whatever the valid or non-valid reasons anyone could think of) they should be able to use realtime architecture instead of astdb. Mind you that only sites that know what they doing will utilise that, so I don't think it will create a major support headache. Allowing users to select realtime or astdb is another step close to a reliable "carrier grade" asterisk active-active cluster :) This is just my 0.01c :)