Commit 0be5951f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #27724: sdp: remove old contact header (if present)

parent 6ffe2aea
......@@ -240,6 +240,8 @@ addContactHeader(const std::string &contactStr, pjsip_tx_data *tdata)
pjsip_contact_hdr *contact = pjsip_contact_hdr_create(tdata->pool);
contact->uri = pjsip_parse_uri(tdata->pool, pjContact.ptr,
// remove old contact header (if present)
pjsip_msg_find_remove_hdr(tdata->msg, PJSIP_H_CONTACT, NULL);
pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) contact);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment