Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
beede6a1
Commit
beede6a1
authored
Feb 07, 2013
by
Simon Morlat
Browse files
fix bugs.
parent
dd9241f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
coreapi/linphonecall.c
coreapi/linphonecall.c
+1
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+2
-2
No files found.
coreapi/linphonecall.c
View file @
beede6a1
...
...
@@ -473,6 +473,7 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr
linphone_call_init_common
(
call
,
from
,
to
);
_linphone_call_params_copy
(
&
call
->
params
,
params
);
sal_op_set_custom_header
(
call
->
op
,
call
->
params
.
custom_headers
);
call
->
params
.
custom_headers
=
NULL
;
if
(
linphone_core_get_firewall_policy
(
call
->
core
)
==
LinphonePolicyUseIce
)
{
call
->
ice_session
=
ice_session_new
();
...
...
coreapi/linphonecore_jni.cc
View file @
beede6a1
...
...
@@ -1694,7 +1694,7 @@ extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_addCustomHeader(J
const
char
*
value
=
env
->
GetStringUTFChars
(
jheader_value
,
NULL
);
linphone_chat_message_add_custom_header
((
LinphoneChatMessage
*
)
ptr
,
name
,
value
);
env
->
ReleaseStringUTFChars
(
jheader_name
,
name
);
env
->
ReleaseStringUTFChars
(
jheader_
name
,
nam
e
);
env
->
ReleaseStringUTFChars
(
jheader_
value
,
valu
e
);
}
extern
"C"
jstring
Java_org_linphone_core_LinphoneChatMessageImpl_getExternalBodyUrl
(
JNIEnv
*
env
...
...
@@ -1876,7 +1876,7 @@ extern "C" jstring Java_org_linphone_core_LinphoneCallParamsImpl_getCustomHeader
return
header_value
?
env
->
NewStringUTF
(
header_value
)
:
NULL
;
}
extern
"C"
void
Java_org_linphone_core_LinphoneCallParamsImpl_
set
CustomHeader
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lcp
,
jstring
jheader_name
,
jstring
jheader_value
){
extern
"C"
void
Java_org_linphone_core_LinphoneCallParamsImpl_
add
CustomHeader
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
lcp
,
jstring
jheader_name
,
jstring
jheader_value
){
const
char
*
header_name
=
env
->
GetStringUTFChars
(
jheader_name
,
NULL
);
const
char
*
header_value
=
env
->
GetStringUTFChars
(
jheader_value
,
NULL
);
linphone_call_params_add_custom_header
((
LinphoneCallParams
*
)
lcp
,
header_name
,
header_value
);
...
...
Write
Preview
Markdown
is supported
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