res_pjsip: improve realtime performance #2

The patch removes updating all Endpoints' status on startup.
Instead, only non-qualified aors with static contact
and non-qualified non-expired contacts are retrieved from the realtime to
update the endpoint status to ONLINE.
The endpoint name was added to the contact object to simply find the endpoint
that created this contact.

The status of endpoints with qualified aors will be updated by 'qualify'
functions.

ASTERISK-26061 #close

Change-Id: Id324c1776fa55d3741e0c5457ecac0304cb1a0df
This commit is contained in:
Alexei Gradinari
2016-06-22 15:25:23 -04:00
parent aec09d9c09
commit 6fa3ed0679
6 changed files with 265 additions and 46 deletions

View File

@@ -1169,6 +1169,12 @@
REGISTER requests and is not intended to be configured manually.
</para></description>
</configOption>
<configOption name="endpoint">
<synopsis>Endpoint name</synopsis>
<description><para>
The name of the endpoint this contact belongs to
</para></description>
</configOption>
<configOption name="reg_server">
<synopsis>Asterisk Server name</synopsis>
<description><para>