]> sjero.net Git - linphone/commitdiff
fix sending of PUBLISH requests (was not set to the proxy address actually)
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 5 Apr 2013 10:16:05 +0000 (12:16 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 5 Apr 2013 10:16:05 +0000 (12:16 +0200)
coreapi/proxy.c
coreapi/sal_eXosip2_presence.c

index 5546102ba433a3a7ffd9767ddb82aad3715ee832..42c21f01b29a36000a9f0ed4b7ef882613c545f2 100644 (file)
@@ -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)
index 356d2a9fb3c982dbb7473999ac3ce7ca3be02f6d..ffa7ed92066801ddfd37cbe50398674671ee0898 100644 (file)
@@ -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.");