From 08d21defaaf6dca8ac8e0c8a4c43f4e969e128c0 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Wed, 21 Aug 2013 20:48:30 +0300 Subject: [PATCH] soap: remove temporary hack for UCS sip_soap_request() is no longer called when contact list has been migrated to UCS. --- src/core/sip-soap.c | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/src/core/sip-soap.c b/src/core/sip-soap.c index f8ec116f..54ed74a6 100644 --- a/src/core/sip-soap.c +++ b/src/core/sip-soap.c @@ -32,13 +32,10 @@ #include -#include "sipmsg.h" /* TEMPORARY */ #include "sip-soap.h" #include "sip-transport.h" -#include "sipe-backend.h" /* TEMPORARY */ #include "sipe-core.h" #include "sipe-core-private.h" -#include "sipe-ucs.h" /* TEMPORARY */ #include "sipe-utils.h" void sip_soap_raw_request_cb(struct sipe_core_private *sipe_private, @@ -47,38 +44,20 @@ void sip_soap_raw_request_cb(struct sipe_core_private *sipe_private, SoapTransCallback callback, struct transaction_payload *payload) { - /* - * TEMPORARY - * - * contact list has been migrated to UCS -> SOAP requests will fail - */ - if (sipe_ucs_is_migrated(sipe_private)) { - if (callback) { - struct sipmsg msg; - struct transaction trans; - msg.response = 500; - trans.payload = payload; - (*callback)(sipe_private, &msg, &trans); - } - sipe_backend_notify_error(SIPE_CORE_PUBLIC, - "Contact list migrated", - "Operation NOT supported (yet)!"); - } else { - gchar *contact = get_contact(sipe_private); - gchar *hdr = g_strdup_printf("Contact: %s\r\n" - "Content-Type: application/SOAP+xml\r\n", - contact); + gchar *contact = get_contact(sipe_private); + gchar *hdr = g_strdup_printf("Contact: %s\r\n" + "Content-Type: application/SOAP+xml\r\n", + contact); - struct transaction *trans = sip_transport_service(sipe_private, - from, - hdr, - soap, - callback); - trans->payload = payload; + struct transaction *trans = sip_transport_service(sipe_private, + from, + hdr, + soap, + callback); + trans->payload = payload; - g_free(contact); - g_free(hdr); - } + g_free(contact); + g_free(hdr); } /** -- 2.11.4.GIT