Module: sems
Branch: master
Commit: 09dca94aa38c3e9ec5efc9b3c119fa97ce404bed
URL: 
https://github.com/sems-server/sems/commit/09dca94aa38c3e9ec5efc9b3c119fa97ce404bed

Author: Raphael Coeffic <r...@iptel.org>
Committer: Stefan Sayer <stefan.sa...@googlemail.com>
Date: 2015-06-24T00:38:22+02:00

b/f: sbc: fixed reading encoding param in readPayload()

---

Modified: apps/sbc/SBCCallProfile.cpp

---

Diff:  
https://github.com/sems-server/sems/commit/09dca94aa38c3e9ec5efc9b3c119fa97ce404bed.diff
Patch: 
https://github.com/sems-server/sems/commit/09dca94aa38c3e9ec5efc9b3c119fa97ce404bed.patch

---

diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp
index ce93ef2..2654fd8 100644
--- a/apps/sbc/SBCCallProfile.cpp
+++ b/apps/sbc/SBCCallProfile.cpp
@@ -1347,7 +1347,7 @@ static bool readPayload(SdpPayload &p, const string &src)
 
   if (elems.size() < 1) return false;
 
-  if (elems.size() > 2) str2int(elems[1], p.encoding_param);
+  if (elems.size() > 2) str2int(elems[2], p.encoding_param);
   if (elems.size() > 1) str2int(elems[1], p.clock_rate);
   else p.clock_rate = 8000; // default value
   p.encoding_name = elems[0];

_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to