<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div>> To: asterisk-dev@lists.digium.com<br>> From: jcolp@digium.com<br>> Date: Fri, 2 Oct 2015 10:21:10 -0300<br>> Subject: Re: [asterisk-dev] Asterisk Unregister/Register Causes Phone to become Unreachable<br>> <br>> On 15-10-02 10:11 AM, Ross Beer wrote:<br>> ><br>> > I've disabled the res_pjsip_registrar_expire module and asterisk still<br>> > loops though all of the endpoints showing: Endpoint XXXXXXXXXXX is now<br>> > Unreachable<br>> ><br>> > Is there a way I can disable asterisk from doing this? It's not<br>> > efficient to firstly loop though all of the endpoints and to remove the<br>> > contacts from another instance.<br>> ><br>> > It does appear to have stopped further de-registrations between peers,<br>> > which is great news.<br>> <br>> Not without modifying the code. When is it doing this? At start?</div><div><br></div><div><br></div><div>Yes, it does this during module load before 'Asterisk Started'.</div><div><br>> <br>> ><br>> > > ><br>> > > > Is it also possible to only cache devices that register to a server<br>> > > > instead of accessing all endpoints on reload?<br>> > ><br>> > > I don't understand what you mean by cache.<br>> ><br>> > With the new cache it stores information when the devices are accessed.<br>> > I think the way around caching at start-up would be to stop asterisk<br>> > looping through all endpoints. I guess asterisk should only need to get<br>> > peers that require 'qualify' or outbound registrations instead of<br>> > retrieving all endpoints. This would make the start-up more efficient,<br>> > at the moment it's taking Asterisk 13 around 2 mins to start!!<br>> ><br>> > Would it be possible to filter endpoints based on the above criteria at<br>> > start-up?<br>> <br>> Outbound registrations are separate from endpoints, endpoints aren't <br>> retrieved as a result of it. As for endpoints not really. The sorcery <br>> layer (and realtime itself) doesn't allow you to specify constraints to <br>> that degree, only if a field is a specific value. In the case of qualify <br>> it's not off or on.<br>> </div><div><br></div><div><br></div><div>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.</div><div><br></div><div>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'?</div><div><br></div><div><br>> ><br>> > ><br>> > > ><br>> > > > Ideally we would like to store a 'regserv' value, as with the previous<br>> > > > chan_sip driver.<br>> > ><br>> > > This does not currently exist in the PJSIP functionality.<br>> ><br>> > I'm happy to develop this feature, its just another column in the<br>> > 'contact' table and setting the value to the host name.<br>> ><br>> > I'm happy for another instance to remove the contact, if a device<br>> > registers to it.<br>> <br>> I'm sure others would welcome this addition as well.</div><div><br></div><div>That's already being worked on, happy to provide a patch.</div><div><br>> <br>> -- <br>> Joshua Colp<br>> Digium, Inc. | Senior Software Developer<br>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>> Check us out at: www.digium.com & www.asterisk.org<br>> <br>> -- <br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> <br>> asterisk-dev mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-dev<br></div> </div></body>
</html>