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
622c8f30
Commit
622c8f30
authored
Apr 05, 2013
by
Simon Morlat
Browse files
fix sending of PUBLISH requests (was not set to the proxy address actually)
parent
c42f7ec0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
coreapi/proxy.c
coreapi/proxy.c
+1
-0
coreapi/sal_eXosip2_presence.c
coreapi/sal_eXosip2_presence.c
+1
-1
No files found.
coreapi/proxy.c
View file @
622c8f30
...
...
@@ -792,6 +792,7 @@ int linphone_proxy_config_send_publish(LinphoneProxyConfig *proxy,
LinphoneOnlineStatus
presence_mode
){
int
err
;
SalOp
*
op
=
sal_op_new
(
proxy
->
lc
->
sal
);
sal_op_set_route
(
op
,
proxy
->
reg_proxy
);
err
=
sal_publish
(
op
,
linphone_proxy_config_get_identity
(
proxy
),
linphone_proxy_config_get_identity
(
proxy
),
linphone_online_status_to_sal
(
presence_mode
));
if
(
proxy
->
publish_op
!=
NULL
)
...
...
coreapi/sal_eXosip2_presence.c
View file @
622c8f30
...
...
@@ -635,7 +635,7 @@ int sal_publish(SalOp *op, const char *from, const char *to, SalPresenceStatus p
mk_presence_body
(
presence_mode
,
from
,
buf
,
sizeof
(
buf
),
presence_style
);
i
=
eXosip_build_publish
(
&
pub
,
from
,
to
,
NULL
,
"presence"
,
"300"
,
i
=
eXosip_build_publish
(
&
pub
,
from
,
to
,
sal_op_get_route
(
op
)
,
"presence"
,
"300"
,
presence_style
?
"application/xpidf+xml"
:
"application/pidf+xml"
,
buf
);
if
(
i
<
0
){
ms_warning
(
"Failed to build publish request."
);
...
...
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