diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-07-11 10:22:35 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-07-13 11:22:49 -0500 |
commit | fea201f7e61c4daacce899cdafc40a5a13de9441 (patch) | |
tree | 109f8dfc458d6ad78e95884eba4a6062e281733c /res/res_pjsip | |
parent | 02877b4b4fd8393620ee3568483e14b04f7d2aed (diff) |
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
Diffstat (limited to 'res/res_pjsip')
-rw-r--r-- | res/res_pjsip/pjsip_options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 7b37a7a18..6f7455d50 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -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); } } |