Module: sems
Branch: master
Commit: 8d1f7f78927733c20a7b054afbc9eab9d3416af4
URL: 
https://github.com/sems-server/sems/commit/8d1f7f78927733c20a7b054afbc9eab9d3416af4

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date: 2015-06-02T17:32:13+02:00

b/f:transcoder: trim transcoder codec name

---

Modified: apps/sbc/SBCCallProfile.cpp

---

Diff:  
https://github.com/sems-server/sems/commit/8d1f7f78927733c20a7b054afbc9eab9d3416af4.diff
Patch: 
https://github.com/sems-server/sems/commit/8d1f7f78927733c20a7b054afbc9eab9d3416af4.patch

---

diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp
index da70eae..18960ad 100644
--- a/apps/sbc/SBCCallProfile.cpp
+++ b/apps/sbc/SBCCallProfile.cpp
@@ -1368,11 +1368,11 @@ static bool read(const std::string &src, 
vector<SdpPayload> &codecs)
 
   for (vector<string>::iterator it=elems.begin(); it != elems.end(); ++it) {
     SdpPayload p;
-    if (!readPayload(p, *it)) return false;
+    if (!readPayload(p, trim(*it, " "))) return false;
     int payload_id = plugin->getDynPayload(p.encoding_name, p.clock_rate, 0);
     amci_payload_t* payload = plugin->payload(payload_id);
     if(!payload) {
-      ERROR("Ignoring unknown payload found in call profile: %s/%i\n",
+      ERROR("Ignoring unknown payload found in call profile: '%s/%i'\n",
            p.encoding_name.c_str(), p.clock_rate);
     }
     else {

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to