From 95e37115237eb7855b74d035e241d2902119298b Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Sun, 26 Sep 2021 23:07:59 +0800 Subject: [PATCH] Upgrade version 0.3.8. --- CHANGELOG.md | 8 ++++++++ lib/src/transports/websocket_interface.dart | 3 ++- pubspec.yaml | 2 +- test/test_parser.dart | 5 +++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 939e94fb..e62747df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ # Changelog -------------------------------------------- +[0.3.8] - 2021.09.26 + +* Fix ice delay. +* Don't run ready if session has been terminated (#226) +* Support IceRestart when IceStateDisconnected (#218) +* Add options to the hangup (#224) +* Adaptive when answering audio or video calls. + [0.3.7] - 2021.08.24 * Fix the issue that unified-plan's onTrack does not call back AudioTrack. diff --git a/lib/src/transports/websocket_interface.dart b/lib/src/transports/websocket_interface.dart index ee7725a6..7fe9cdda 100644 --- a/lib/src/transports/websocket_interface.dart +++ b/lib/src/transports/websocket_interface.dart @@ -18,7 +18,8 @@ class WebSocketInterface implements Socket { logger.error('invalid WebSocket URI scheme: ${parsed_url.scheme}'); throw AssertionError('Invalid argument: $url'); } else { - String transport_scheme = webSocketSettings != null && webSocketSettings.transport_scheme != null + String transport_scheme = webSocketSettings != null && + webSocketSettings.transport_scheme != null ? webSocketSettings.transport_scheme.toLowerCase() : parsed_url.scheme; diff --git a/pubspec.yaml b/pubspec.yaml index b5a9490e..4623612a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sip_ua -version: 0.3.7 +version: 0.3.8 description: A SIP UA stack for Flutter/Dart, based on flutter-webrtc, support iOS/Android/Destkop/Web. homepage: https://github.com/cloudwebrtc/dart-sip-ua environment: diff --git a/test/test_parser.dart b/test/test_parser.dart index e8a29471..904a4922 100644 --- a/test/test_parser.dart +++ b/test/test_parser.dart @@ -225,8 +225,9 @@ List testFunctions = [ expect(auth.opaque, '00000188'); }), () => test('Parser: authentication challenge2.', () { - String data = 'Digest algorithm="MD5",qop="auth",realm="some.sip.domain.com",nonce="217384172034871293047102934",otherk1="other_v1"'; - dynamic auth = Grammar.parse(data, 'challenge'); + String data = + 'Digest algorithm="MD5",qop="auth",realm="some.sip.domain.com",nonce="217384172034871293047102934",otherk1="other_v1"'; + dynamic auth = Grammar.parse(data, 'challenge'); print('auth => ' + auth.toString()); expect(auth.realm, 'some.sip.domain.com'); expect(auth.nonce, '217384172034871293047102934');