Fix SDP Connection field generation bug (#136)

The signature of sdpFactory#createConnection is (String netType, String addrType, String addr), so IceSdpUtils always generate wrong Connection in SDP
This commit is contained in:
Reker 2019-02-12 19:42:23 +08:00 committed by bgrozev
parent 0be8f1aae7
commit f9a357ec17

View File

@ -177,7 +177,7 @@ public class IceSdpUtils
: Connection.IP4; : Connection.IP4;
mediaDescription.setConnection(sdpFactory.createConnection( mediaDescription.setConnection(sdpFactory.createConnection(
"IN", defaultAddress.getHostAddress(), addressFamily)); "IN", addressFamily, defaultAddress.getHostAddress()));
//now check if the RTCP port for the default candidate is different //now check if the RTCP port for the default candidate is different
//than RTP.port +1, in which case we need to mention it. //than RTP.port +1, in which case we need to mention it.