asterisk/res/res_pjsip
Mark Michelson bbed75c3ba Update qualifies when AOR configuration changes.
Prior to this change, qualifies would only update in the following
cases:
* A reload of res_pjsip.so was issued.
* A dynamic contact was re-registered after its AOR's qualify_frequency
  had been changed
This does not work well if you are using realtime for your AORs. You can
update your database to have a new qualify_frequency, but the permanent
contacts on that AOR will not have their qualifies updated. And the
dynamic contacts on that AOR will not have their qualifies updated until
the next registration, which could be a long time.

This change seeks to fix this problem by making it so that whenever AOR
configuration is applied, the contacts pertaining to that AOR have their
qualifies updated.

Additions from this patch:
* AOR sorcery objects now have an apply handler that calls into a newly
  added function in the OPTIONS code. This causes all contacts
  associated with that AOR to re-schedule qualifies.
* When it is time to qualify a contact, the OPTIONS code checks to see
  if the AOR can still be retrieved. If not, then qualification is
  canceled on the contact.

Alterations from this patch:
* The registrar code no longer updates contact's qualify_frequence and
  qualify_timeout. There is no point to this since those values already
  get updated when the AOR changes.
* Reloading res_pjsip.so no longer calls the OPTIONS initialization
  function. Reloading res_pjsip.so results in re-loading AORs, which
  results in re-scheduling qualifies.

Change-Id: I2e7c3316da28f389c45954f24c4e9389abac1121
2017-02-01 14:21:04 -06:00
..
include Update qualifies when AOR configuration changes. 2017-02-01 14:21:04 -06:00
config_auth.c res_pjsip: Add "like" processing to pjsip list and show commands 2015-10-24 11:02:43 -05:00
config_domain_aliases.c res_pjsip: Move internal init/destroy prototypes to private header file. 2015-03-11 16:39:29 +00:00
config_global.c res_pjsip: Add ignore_uri_user_options option. 2016-09-09 17:13:02 -05:00
config_system.c res_pjsip: Set threadpool max size default to 50. 2015-11-02 18:24:09 -05:00
config_transport.c PJSIP: provide valid tcp nodelay option for reuse 2016-07-07 11:32:58 -05:00
location.c Update qualifies when AOR configuration changes. 2017-02-01 14:21:04 -06:00
pjsip_cli.c chan_pjsip: Add 'pjsip show channelstats' 2016-03-29 14:35:31 -05:00
pjsip_configuration.c Free endpoint ACLs when destroying PJSIP endpoints. 2017-01-23 16:22:34 -06:00
pjsip_distributor.c res_pjsip: Only invoke unidentified endpoint logic when unidentified. 2016-09-09 05:45:06 -05:00
pjsip_global_headers.c res_pjsip: Allow global headers to be overridden. 2016-09-07 16:02:01 -05:00
pjsip_message_ip_updater.c pjsip: Support dual stack automatically. 2016-10-23 13:53:55 +00:00
pjsip_options.c Update qualifies when AOR configuration changes. 2017-02-01 14:21:04 -06:00
pjsip_resolver.c Add support for older name resolving version libraries like openBSD 2016-11-20 09:19:18 +11:00
pjsip_scheduler.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
presence_xml.c res/res_pjsip/presence_xml.c: Add missing 2nd call presence state case. 2016-01-21 16:04:39 -06:00
security_events.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00