Summary:ASTERISK-23514: The pjsip.conf aor qualify contact parameters are not updated on reload.
Reporter:Richard Mudgett (rmudgett)Labels:
Date Opened:2014-03-21 20:35:43Date Closed:2014-04-17 17:50:13
Versions:12.1.1 Frequency of
Environment:Attachments:( 0) jira_asterisk_23514_v12.patch
Description:Reloading pjsip configuration does not update aor contact qualifying options.

The attached patch fixes the initial problem of contact options not updating on a reload.  However, it exposes another problem.  The active contact qualify options seem to be one reload update behind what was just loaded.

The qualify frequency doesn't seem to change even when the option is updated.  There seems to be a problem updating the sched tasks in pjsip_options.c.

Found while trying to test the patch for ASTERISK-23254.
Comments:By: Richard Mudgett (rmudgett) 2014-03-21 20:54:05.152-0500

* Made permanent contacts have a predictable sorcery id instead of a UUID so updates can replace previous scheduled contacts.  The aor permanent contacts container is sorted to reject duplicate contact URI's.  Probably need to just remove all scheduled contact qualify polls unconditionally and restart with the new contacts instead.

* Changed the sched_qualifies container to be searchable so a scheduled qualify poll can be directly found instead of traversing the container to find it.