Get note from root if not found in tuple (#2909)

remotes/origin/update_contact_on_ip_change
sauwming 3 years ago committed by GitHub
parent fc91812dd1
commit 833c983029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -204,6 +204,10 @@ static pj_status_t get_tuple_note(const pjpidf_pres *pres,
return PJSIP_SIMPLE_EBADRPID;
nd_note = find_node(nd_tuple, "note");
/* If we cannot find <note> inside <tuple>, try to get it from root. */
if (!nd_note)
nd_note = find_node(pres, "note");
if (nd_note) {
pj_strdup(pool, &elem->note, &nd_note->content);
return PJ_SUCCESS;

Loading…
Cancel
Save