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
653a123b
Commit
653a123b
authored
May 16, 2013
by
Simon Morlat
Browse files
presence and publish bugfixes
parent
bb0f07f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
coreapi/bellesip_sal/sal_op_presence.c
View file @
653a123b
...
...
@@ -540,7 +540,7 @@ static void presence_process_request_event(void *op_base, const belle_sip_reques
}
else
{
estatus
=
SalPresenceOffline
;
}
ms_message
(
"We are notified that [%s] has online status [%s]"
,
sal_op_get_
from
(
op
),
sal_presence_status_to_string
(
estatus
));
ms_message
(
"We are notified that [%s] has online status [%s]"
,
sal_op_get_
to
(
op
),
sal_presence_status_to_string
(
estatus
));
if
(
!
subscription_state_header
||
strcasecmp
(
BELLE_SIP_SUBSCRIPTION_STATE_TERMINATED
,
belle_sip_header_subscription_state_get_state
(
subscription_state_header
))
==
0
)
{
sub_state
=
SalSubscribeTerminated
;
ms_message
(
"And outgoing subscription terminated by remote [%s]"
,
sal_op_get_to
(
op
));
...
...
coreapi/bellesip_sal/sal_op_registration.c
View file @
653a123b
...
...
@@ -73,8 +73,6 @@ static void register_refresher_listener ( const belle_sip_refresher_t* refresher
op
->
base
.
root
->
callbacks
.
auth_failure
(
op
,
op
->
auth_info
);
}
}
}
else
{
ms_warning
(
"Register refresher know what to do with this status code"
);
}
}
...
...
coreapi/proxy.c
View file @
653a123b
...
...
@@ -1182,12 +1182,12 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){
}
if
(
can_register
(
cfg
)){
linphone_proxy_config_register
(
cfg
);
if
(
cfg
->
publish
&&
cfg
->
publish_op
==
NULL
){
linphone_proxy_config_send_publish
(
cfg
,
lc
->
presence_mode
);
}
cfg
->
commit
=
FALSE
;
}
}
if
(
cfg
->
publish
&&
cfg
->
publish_op
==
NULL
&&
cfg
->
state
==
LinphoneRegistrationOk
){
linphone_proxy_config_send_publish
(
cfg
,
lc
->
presence_mode
);
}
}
void
linphone_proxy_config_set_sip_setup
(
LinphoneProxyConfig
*
cfg
,
const
char
*
type
){
...
...
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