Files
asterisk/include/asterisk
George Joseph fe7e48db03 res_pjsip contact: Lock expiration/addition of contacts
Contact expiration can occur in several places:  res_pjsip_registrar,
res_pjsip_registrar_expire, and automatically when anyone calls
ast_sip_location_retrieve_aor_contact.  At the same time, res_pjsip_registrar
may also be attempting to renew or add a contact.  Since none of this was locked
it was possible for one thread to be renewing a contact and another thread to
expire it immediately because it was working off of stale data.  This was the
casue of intermittent registration/inbound/nominal/multiple_contacts test
failures.

Now, the new named lock functionality is used to lock the aor during contact
expire and add operations and res_pjsip_registrar_expire now checks the
expiration with the lock held before deleting the contact.

ASTERISK-25885 #close
Reported-by: Josh Colp

Change-Id: I83d413c46a47796f3ab052ca3b349f21cca47059
2016-04-11 13:00:14 -05:00
..
2016-04-08 12:50:58 -06:00
2015-04-12 13:48:10 -05:00
2012-06-25 15:55:25 +00:00
2009-04-29 18:53:01 +00:00
2014-07-24 17:50:46 +00:00
2013-07-25 04:06:32 +00:00
2013-08-22 18:52:41 +00:00
2016-03-24 09:29:07 -05:00
2012-08-30 14:23:28 +00:00
2008-07-21 21:00:47 +00:00
2012-08-30 14:23:28 +00:00
2009-03-18 02:28:55 +00:00
2015-08-07 14:55:53 -05:00
2016-04-08 12:50:58 -06:00
2013-08-30 20:58:59 +00:00
2014-07-04 13:26:37 +00:00
2013-07-03 17:58:45 +00:00
2014-01-06 17:45:25 +00:00
2012-02-24 15:10:35 +00:00
2015-01-26 14:49:32 +00:00
2011-10-11 19:06:29 +00:00
2014-07-21 08:41:29 +00:00
2013-04-22 16:22:00 +00:00
2013-05-08 13:39:08 +00:00
2015-11-24 13:54:54 -06:00
2007-12-11 22:20:22 +00:00
2007-12-11 22:20:22 +00:00
2013-02-15 13:38:12 +00:00