From d5b3c3010d4c93b6c1e56593d755f1ac5bd949c6 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 29 Mar 2018 11:40:32 +0200 Subject: [PATCH] add +xml to content type to be rfc compliant --- src/conference/handlers/local-conference-event-handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conference/handlers/local-conference-event-handler.cpp b/src/conference/handlers/local-conference-event-handler.cpp index 82da4122e..708fdfce7 100644 --- a/src/conference/handlers/local-conference-event-handler.cpp +++ b/src/conference/handlers/local-conference-event-handler.cpp @@ -111,7 +111,7 @@ string LocalConferenceEventHandlerPrivate::createNotifyMultipart (int notifyId) list contents; for (const auto &eventLog : events) { Content *content = new Content(); - content->setContentType(ContentType("application","conference-info")); + content->setContentType(ContentType::ConferenceInfo); string body; shared_ptr notifiedEvent = static_pointer_cast(eventLog); int eventNotifyId = static_cast(notifiedEvent->getNotifyId()); @@ -376,7 +376,7 @@ void LocalConferenceEventHandlerPrivate::notifyParticipantDevice (const string & ); linphone_content_set_subtype( content, - multipart ? "mixed;boundary=---------------------------14737809831466499882746641449" : "conference-info" + multipart ? "mixed;boundary=---------------------------14737809831466499882746641449" : "conference-info+xml" ); // TODO: Activate compression //if (linphone_core_content_encoding_supported(conf->getCore()->getCCore(), "deflate"))