From: Richard Mudgett Date: Mon, 11 Jul 2016 15:22:35 +0000 (-0500) Subject: pjsip_options.c: Fix container operation. X-Git-Tag: 14.0.0-beta1~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc1ff41be747c69c83c2c66a04e8e440f1dc0be7;p=thirdparty%2Fasterisk.git pjsip_options.c: Fix container operation. aor_observer_deleted() needs to operate on all contacts found for the deleted AOR instead of only the first one found. This is really only a problem if there is more than one contact for the AOR. Change-Id: Id24ac0d5e8c931330231fb45dd2a331a84339dc1 --- diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 808ee171a1..5e0fc76cb5 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -1264,7 +1264,7 @@ static void aor_observer_deleted(const void *obj) contacts = ast_sip_location_retrieve_aor_contacts(aor); if (contacts) { - ao2_callback(contacts, OBJ_NODATA, unschedule_contact_cb, NULL); + ao2_callback(contacts, OBJ_NODATA | OBJ_MULTIPLE, unschedule_contact_cb, NULL); ao2_ref(contacts, -1); } }