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
17f57522
Commit
17f57522
authored
Oct 19, 2015
by
Simon Morlat
Browse files
fix crash and compilation issue
parent
59b7e88d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
coreapi/bellesip_sal/sal_op_presence.c
coreapi/bellesip_sal/sal_op_presence.c
+5
-3
tester/proxy_config_tester.c
tester/proxy_config_tester.c
+4
-2
No files found.
coreapi/bellesip_sal/sal_op_presence.c
View file @
17f57522
...
@@ -96,9 +96,11 @@ static void presence_response_event(void *op_base, const belle_sip_response_even
...
@@ -96,9 +96,11 @@ static void presence_response_event(void *op_base, const belle_sip_response_even
sal_op_set_error_info_from_response
(
op
,
response
);
sal_op_set_error_info_from_response
(
op
,
response
);
if
(
code
>=
300
)
{
if
(
code
>=
300
)
{
ms_message
(
"subscription to [%s] rejected"
,
sal_op_get_to
(
op
));
if
(
strcmp
(
"SUBSCRIBE"
,
belle_sip_request_get_method
(
request
))
==
0
){
op
->
base
.
root
->
callbacks
.
notify_presence
(
op
,
SalSubscribeTerminated
,
NULL
,
NULL
);
/*NULL = offline*/
ms_message
(
"subscription to [%s] rejected"
,
sal_op_get_to
(
op
));
return
;
op
->
base
.
root
->
callbacks
.
notify_presence
(
op
,
SalSubscribeTerminated
,
NULL
,
NULL
);
/*NULL = offline*/
return
;
}
}
}
set_or_update_dialog
(
op_base
,
belle_sip_response_event_get_dialog
(
event
));
set_or_update_dialog
(
op_base
,
belle_sip_response_event_get_dialog
(
event
));
if
(
!
op
->
dialog
)
{
if
(
!
op
->
dialog
)
{
...
...
tester/proxy_config_tester.c
View file @
17f57522
...
@@ -88,9 +88,11 @@ static void phone_normalization_with_dial_escape_plus(void){
...
@@ -88,9 +88,11 @@ static void phone_normalization_with_dial_escape_plus(void){
#define SIP_URI_CHECK(actual, expected) { \
#define SIP_URI_CHECK(actual, expected) { \
LinphoneProxyConfig *proxy = linphone_proxy_config_new(); \
LinphoneProxyConfig *proxy = linphone_proxy_config_new(); \
LinphoneAddress* res;\
char* actual_str;\
linphone_proxy_config_set_identity(proxy, "sip:username@linphone.org"); \
linphone_proxy_config_set_identity(proxy, "sip:username@linphone.org"); \
LinphoneAddress*
res = linphone_proxy_config_normalize_sip_uri(proxy, actual); \
res
= linphone_proxy_config_normalize_sip_uri(proxy, actual); \
char*
actual_str = linphone_address_as_string_uri_only(res); \
actual_str = linphone_address_as_string_uri_only(res); \
BC_ASSERT_STRING_EQUAL(actual_str, expected); \
BC_ASSERT_STRING_EQUAL(actual_str, expected); \
ms_free(actual_str); \
ms_free(actual_str); \
linphone_address_destroy(res); \
linphone_address_destroy(res); \
...
...
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