Issue 349: RTP rtp format parser requires each entry to be new line
http://code.google.com/p/mobicents/issues/detail?id=349
Comment #1 by baranowb:
Actuall erorr was : whnever there was telephone event - other parts of
descriptor
were ignored.
Simplest patch:
Index:
server-impl/src/main/java/org/mobicents/media/server/impl/jmx/rtp/FormatDescription.java
===================================================================
---
server-impl/src/main/java/org/mobicents/media/server/impl/jmx/rtp/FormatDescription.java
(revision 2786)
+++
server-impl/src/main/java/org/mobicents/media/server/impl/jmx/rtp/FormatDescription.java
(working copy)
@@ -30,7 +30,7 @@
HashMap map = new HashMap();
String tokens[] = description.split(";");
for (int i = 0; i < tokens.length; i++) {
- if (tokens.length == 0) continue;
+ if (tokens[i].length() == 0) continue;
String params[] = tokens[i].split("=");
//parse payload
@@ -44,7 +44,8 @@
if (fmtParams.length == 1) {
Format fmt = new RTPAudioFormat(payload, encodingName);
map.put(payload, fmt);
- return map;
+
+ continue;
}
int sampleRate = 8000;
Issue attribute updates:
Status: Fixed
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings