From c6b0d23433777337ae81a75af6676a6b7314bde1 Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Mon, 17 Mar 2014 11:17:13 +0100 Subject: [PATCH] media: don't announce Opus codec Apparently Lync 2013 client hates it and gives us error response 488/Not Acceptable Here with reason "Unsupported session description". --- src/purple/purple-media.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/purple/purple-media.c b/src/purple/purple-media.c index dd179d13..2dd5f001 100644 --- a/src/purple/purple-media.c +++ b/src/purple/purple-media.c @@ -696,6 +696,8 @@ sipe_backend_get_local_codecs(struct sipe_backend_media *media, * Communicator rejects such SDP message and does not support the codec * anyway. * + * Lync 2013 client hates Opus codec as well. + * * For some yet unknown reason, A/V conferencing server does not accept * voice stream sent by SIPE when SIREN codec is in use. Nevertheless, * we are able to decode incoming SIREN from server and with MSOC @@ -708,6 +710,7 @@ sipe_backend_get_local_codecs(struct sipe_backend_media *media, gchar *encoding_name = purple_media_codec_get_encoding_name(codec); if (sipe_strequal(encoding_name,"THEORA") || + sipe_strequal(encoding_name,"X-GST-OPUS-DRAFT-SPITTKA-00") || (is_conference && sipe_strequal(encoding_name,"SIREN"))) { GList *tmp; g_object_unref(codec); -- 2.11.4.GIT