Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
0be5951f
Commit
0be5951f
authored
Aug 16, 2013
by
Tristan Matthews
Browse files
* #27724: sdp: remove old contact header (if present)
parent
6ffe2aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sipvoiplink.cpp
View file @
0be5951f
...
...
@@ -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
,
pjContact
.
slen
,
PJSIP_PARSE_URI_AS_NAMEADDR
);
// 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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment