]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pjsip_options.c: Fix container operation. 93/3193/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 11 Jul 2016 15:22:35 +0000 (10:22 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jul 2016 16:22:49 +0000 (11:22 -0500)
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

res/res_pjsip/pjsip_options.c

index 7b37a7a18159c85c0d71bb743882ffd2a3cf700b..6f7455d507eeb2849d7ed24c5aad2eac283e46b6 100644 (file)
@@ -1274,7 +1274,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);
        }
 }