diff options
author | Boris Grozev <boris@jitsi.org> | 2013-08-22 20:24:55 +0300 |
---|---|---|
committer | Boris Grozev <boris@jitsi.org> | 2013-08-26 18:42:36 +0300 |
commit | 256f63391b3d1659c7e79712fc41c3c8356a10e1 (patch) | |
tree | 0d9dd6d3a350bda26c75669eff14f3f092e0b03f /src/net/java/sip | |
parent | e87e7229a357679c25ee6043fec17fce6cce811c (diff) | |
download | jitsi-256f63391b3d1659c7e79712fc41c3c8356a10e1.zip jitsi-256f63391b3d1659c7e79712fc41c3c8356a10e1.tar.gz jitsi-256f63391b3d1659c7e79712fc41c3c8356a10e1.tar.bz2 |
Implements a workaround which fixes the number of channels
on Colibri payload-type elements with name="opus".
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/extensions/colibri/ColibriIQProvider.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/extensions/colibri/ColibriIQProvider.java b/src/net/java/sip/communicator/impl/protocol/jabber/extensions/colibri/ColibriIQProvider.java index eca6d1b..8be40f5 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/extensions/colibri/ColibriIQProvider.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/extensions/colibri/ColibriIQProvider.java @@ -198,7 +198,22 @@ public class ColibriIQProvider .parseExtension(parser); if (payloadType != null) + { + if("opus".equals(payloadType.getName()) + && payloadType.getChannels() != 2) + { + /* + * We only have a Format for opus with 2 + * channels, because it MUST be advertised + * with 2 channels. + * Fixing the number of channels here allows + * us to be compatible with agents who + * advertise it with 1 channel. + */ + payloadType.setChannels(2); + } channel.addPayloadType(payloadType); + } } } break; |