Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
595cbe61
Commit
595cbe61
authored
14 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
[#4066] Remove "Require" header from instant message sip headers
parent
adddb6e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-common/src/sip/im/InstantMessaging.cpp
+8
-7
8 additions, 7 deletions
sflphone-common/src/sip/im/InstantMessaging.cpp
with
8 additions
and
7 deletions
sflphone-common/src/sip/im/InstantMessaging.cpp
+
8
−
7
View file @
595cbe61
...
...
@@ -144,6 +144,7 @@ pj_status_t InstantMessaging::send (pjsip_inv_session *session, CallID& id, cons
// Get the dialog associated to the call
dialog
=
session
->
dlg
;
// Convert the text into a format readable by pjsip
message
=
pj_str
(
(
char
*
)
text
.
c_str
());
// Must lock dialog
...
...
@@ -157,21 +158,21 @@ pj_status_t InstantMessaging::send (pjsip_inv_session *session, CallID& id, cons
tdata
->
msg
->
body
=
pjsip_msg_body_create
(
tdata
->
pool
,
&
type
,
&
subtype
,
&
message
);
// Create the Require header to handle recipient-list Content-Disposition type
pjsip_generic_string_hdr
reqhdr
;
pj_str_t
reqhname
=
pj_str
(
"Require"
);
pj_str_t
reqhvalue
=
pj_str
(
"recipient-list"
);
//
pjsip_generic_string_hdr reqhdr;
//
pj_str_t reqhname = pj_str ("Require");
//
pj_str_t reqhvalue = pj_str ("recipient-list");
// Create the Content-Type header to handle multipart/mixed and boundary MIME types
pj_str_t
ctype
=
pj_str
(
"Content-Type"
);
pj_str_t
sctype
=
pj_str
(
"ctype"
);
// small version of the header name
//
pj_str_t ctype = pj_str ("Content-Type");
//
pj_str_t sctype = pj_str ("ctype"); // small version of the header name
// ctypehdr = pjsip_msg_find_hdr_by_names (tdata->msg, &ctype, &sctype, NULL);
// pjsip_generic_string_hdr ctypehdr;
// pj_str_t ctypehname = pj_str ("Content-Type");
// pj_str_t ctypehvalue = pj_str ("multipart/mixed;boundary=\"boundary\"");
// Add headers to the message
pjsip_generic_string_hdr_init2
(
&
reqhdr
,
&
reqhname
,
&
reqhvalue
);
pj_list_push_back
(
&
(
tdata
->
msg
->
hdr
),
(
pjsip_hdr
*
)
(
&
reqhdr
));
//
pjsip_generic_string_hdr_init2 (&reqhdr, &reqhname, &reqhvalue);
//
pj_list_push_back (& (tdata->msg->hdr), (pjsip_hdr*) (&reqhdr));
// pj_list_push_back (& (tdata->msg->hdr), (pjsip_hdr*) (&ctypehdr));
// Send the request
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment