]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: improve realtime performance #2 06/2906/6
authorAlexei Gradinari <alex2grad@gmail.com>
Thu, 2 Jun 2016 22:26:09 +0000 (18:26 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Wed, 22 Jun 2016 14:08:37 +0000 (10:08 -0400)
commitb3c787d1ddd36eb7dfa0906b92a83ab23d8741cd
tree077f1fa82d9378a241bc1c6436cfc97ad8113e34
parent49b1be895256ab12dd813ebda0702590f9cd14e6
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
contrib/ast-db-manage/config/versions/ef7efc2d3964_ps_contacts_add_endpoint_and_modify_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/location.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip/pjsip_options.c