[ekiga] Opal::CallManager: Fixed media codecs handling.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Opal::CallManager: Fixed media codecs handling.
- Date: Sun, 28 Dec 2014 12:03:50 +0000 (UTC)
commit 442fd3b66c5916add2735940bd77932e8f8bbac1
Author: Damien Sandras <dsandras seconix com>
Date: Sun Dec 28 12:06:51 2014 +0100
Opal::CallManager: Fixed media codecs handling.
lib/engine/components/opal/opal-call-manager.cpp | 32 +++++++++------------
1 files changed, 14 insertions(+), 18 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call-manager.cpp
b/lib/engine/components/opal/opal-call-manager.cpp
index a94dd3a..f3d690e 100644
--- a/lib/engine/components/opal/opal-call-manager.cpp
+++ b/lib/engine/components/opal/opal-call-manager.cpp
@@ -507,15 +507,6 @@ void CallManager::set_codecs (Ekiga::CodecList & _codecs)
}
}
}
-
-
- // Add the PCSS codecs
- all_media_formats = pcssEP->GetMediaFormats ();
- for (int j = 0 ;
- j < all_media_formats.GetSize () ;
- j++)
- order = order + all_media_formats [j];
-
// Build the mask
all_media_formats = OpalTranscoder::GetPossibleFormats (pcssEP->GetMediaFormats ());
@@ -526,15 +517,6 @@ void CallManager::set_codecs (Ekiga::CodecList & _codecs)
i++)
mask = mask + all_media_formats [i];
- // Blacklist IM protocols for now
- mask += "T.140";
- mask += "MSRP";
- mask += "SIP-IM";
-
- // Blacklist NSE, since it is unused in ekiga and might create
- // problems with some registrars (such as Eutelia)
- mask += "NamedSignalEvent";
-
// Update the OpalManager
SetMediaFormatMask (mask);
SetMediaFormatOrder (order);
@@ -922,6 +904,7 @@ CallManager::OnOpenMediaStream (OpalConnection & connection,
void CallManager::GetAllowedFormats (OpalMediaFormatList & full_list)
{
OpalMediaFormatList list = OpalTranscoder::GetPossibleFormats (pcssEP->GetMediaFormats ());
+ list.RemoveNonTransportable ();
std::list<std::string> black_list;
black_list.push_back ("GSM-AMR");
@@ -937,6 +920,17 @@ void CallManager::GetAllowedFormats (OpalMediaFormatList & full_list)
black_list.push_back ("RFC4175_YCbCr-4:2:0");
black_list.push_back ("RFC4175_RGB");
+ // Disable T.140 chat for now
+ black_list.push_back ("T.140");
+
+ // Disable CISCO NSE
+ black_list.push_back ("NamedSignalEvent");
+
+ // Disable Far-End Camera Control for now.
+ black_list.push_back ("FECC-RTP");
+ black_list.push_back ("FECC-HDLC");
+
+
// Purge blacklisted codecs
for (PINDEX i = 0 ; i < list.GetSize () ; i++) {
@@ -946,6 +940,8 @@ void CallManager::GetAllowedFormats (OpalMediaFormatList & full_list)
full_list += list [i];
}
}
+
+ PTRACE(4, "Ekiga\tAll available formats: " << setfill (',') << full_list);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]