]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_options: contacts sometimes not being updated on reload
authorKevin Harwell <kharwell@digium.com>
Fri, 8 Dec 2017 00:22:34 +0000 (18:22 -0600)
committerKevin Harwell <kharwell@digium.com>
Fri, 8 Dec 2017 00:39:50 +0000 (18:39 -0600)
commitecdccb8071a372eac125fc94aad6dda7802c980e
tree1d9917bb83b5a43154bce17a7bc5f2939b163ebc
parent8e6aedbdcde92661ac59ef383cd801f8414e229a
pjsip_options: contacts sometimes not being updated on reload

For both dynamic and static contacts it was possible that potential AOR
changes were not being applied to all contacts. This was because the qualify
and schedule code was only retrieving AOR's, and contacts with frequencies
greater than zero.

For instance the following could happen: and AOR/contact has a frequency of 5,
it then gets set to 0, and then a reload occurs. All scheduled OPTIONS are
stopped, a list of AOR's is retrieved with frequency > 0, but none are
selected since in this scenario all are 0. The contact for the one previously
set to 5 though does not get updated, so it's status remains "AVAILABLE".

This patch makes it so all contacts (static and dynamic) are selected, and
appropriately updated if need be.

ASTERISK-27467 #close

Change-Id: I7a920170f89c683af9505d4723a44fc6841decdb
res/res_pjsip/pjsip_options.c