[asterisk-dev] Asterisk Unregister/Register Causes Phone to become Unreachable

Joshua Colp jcolp at digium.com
Fri Oct 2 08:47:08 CDT 2015


On 15-10-02 10:42 AM, Ross Beer wrote:
>
>
> Yes, it does this during module load before 'Asterisk Started'.

I can't remember what would pull the endpoints but you may be able to 
make a code change for your environment to remove it... it's probably 
being done for a reason though.

>  >
>  > >
>  > > > >
>  > > > > Is it also possible to only cache devices that register to a server
>  > > > > instead of accessing all endpoints on reload?
>  > > >
>  > > > I don't understand what you mean by cache.
>  > >
>  > > With the new cache it stores information when the devices are accessed.
>  > > I think the way around caching at start-up would be to stop asterisk
>  > > looping through all endpoints. I guess asterisk should only need to get
>  > > peers that require 'qualify' or outbound registrations instead of
>  > > retrieving all endpoints. This would make the start-up more efficient,
>  > > at the moment it's taking Asterisk 13 around 2 mins to start!!
>  > >
>  > > Would it be possible to filter endpoints based on the above criteria at
>  > > start-up?
>  >
>  > Outbound registrations are separate from endpoints, endpoints aren't
>  > retrieved as a result of it. As for endpoints not really. The sorcery
>  > layer (and realtime itself) doesn't allow you to specify constraints to
>  > that degree, only if a field is a specific value. In the case of qualify
>  > it's not off or on.
>  >
>
>
> None of the endpoints that need qualification are stored in the DB, so
> if its possible to stop the checking endpoints and therefore putting
> them into cache that would be fantastic.
>
> The endpoint configuration does not contain qualify config, however the
> aors do. I guess as it's only on or off, you can specify an '!=0'?

Nope. You can't do !=. It's = only. And since the qualify frequency is 
specified in seconds you can't filter query side.

>  > I'm sure others would welcome this addition as well.
>
> That's already being worked on, happy to provide a patch.

Nifty. You can save yourself some time by ensuring you follow the coding 
guidelines[1]. Gerrit instructions are also on the wiki[2].

[1] https://wiki.asterisk.org/wiki/display/AST/Coding+Guidelines
[2] https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list