Skip to content

Commit

Permalink
Release/0.6.0 (#437)
Browse files Browse the repository at this point in the history
* fix log print.

* bump version flutter-webrtc.

* changlog.
  • Loading branch information
cloudwebrtc authored May 8, 2024
1 parent 05c2673 commit 3342a4b
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 16 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Changelog

--------------------------------------------
[0.6.0] - 2024.05.08

* Add status code to CallState on the progress event by @hiratake55 in https://github.com/flutter-webrtc/dart-sip-ua/pull/374
* expose rtc_session to/from-tag by @ftsef in https://github.com/flutter-webrtc/dart-sip-ua/pull/378
* #376: Added `_settings.session_timers_refresh_method` to UaSettings t… by @komaxx in https://github.com/flutter-webrtc/dart-sip-ua/pull/377
* expose instance_id by @VictorUvarov in https://github.com/flutter-webrtc/dart-sip-ua/pull/395
* Example app cleanup by @VictorUvarov in https://github.com/flutter-webrtc/dart-sip-ua/pull/394
* fix: parse expires from string header. by @cloudwebrtc in https://github.com/flutter-webrtc/dart-sip-ua/pull/396
* Add support for UAConfiguration registrar_server by @VictorUvarov in https://github.com/flutter-webrtc/dart-sip-ua/pull/397
* Feature/update dependency to intl v19 by @komaxx in https://github.com/flutter-webrtc/dart-sip-ua/pull/414
* Tcp socket implementation by @mikaelwills in https://github.com/flutter-webrtc/dart-sip-ua/pull/416
* feat: Adding extraHeaders in RegisterParams, exposing existing functionality via UaSettings() by @luan-evangelista in https://github.com/flutter-webrtc/dart-sip-ua/pull/432
* add contact_uri as parameter by @pjalbuquerque in https://github.com/flutter-webrtc/dart-sip-ua/pull/426

[0.5.8] - 2023.05.11
* Allow await on helper start call (#365)
* Adding params support for sendMessage (#366)
Expand Down
1 change: 0 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies:
path: ../
shared_preferences: ^2.2.0
permission_handler: ^11.1.0
flutter_webrtc: ^0.9.40

dev_dependencies:
flutter_test:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/event_manager/event_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class EventManager {
targets.remove(listener);
targets.add(listener);
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
}
}

Expand Down Expand Up @@ -108,7 +108,7 @@ class EventManager {
// logger.w("invoking $event on $target");
target(event);
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions lib/src/rtc_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ class RTCSession extends EventManager implements Owner {
if (_status == C.STATUS_TERMINATED) {
return;
}
logger.e('Failed to answer(): ${error.toString()}', error, s);
logger.e('Failed to answer(): ${error.toString()}',
error: error, stackTrace: s);
}
}

Expand Down Expand Up @@ -2295,7 +2296,7 @@ class RTCSession extends EventManager implements Owner {

request_sender.send();
} catch (error, s) {
logger.e(error.toString(), error, s);
logger.e(error.toString(), error: error, stackTrace: s);
_failed('local', null, null, null, 500, DartSIP_C.CausesType.WEBRTC_ERROR,
'Can\'t create local SDP');
if (_status == C.STATUS_TERMINATED) {
Expand Down Expand Up @@ -2561,7 +2562,7 @@ class RTCSession extends EventManager implements Owner {
'eventHandlers': handlers
});
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
onFailed();
}
}
Expand Down
5 changes: 3 additions & 2 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ class SIPUAHelper extends EventManager {
_ua!.call(target, options);
return true;
} else {
logger.e('Not connected, you will need to register.', StackTraceNJ());
logger.e('Not connected, you will need to register.',
stackTrace: StackTraceNJ());
}
return false;
}
Expand Down Expand Up @@ -234,7 +235,7 @@ class SIPUAHelper extends EventManager {

_ua!.start();
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
}
}

Expand Down
3 changes: 1 addition & 2 deletions lib/src/socket_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ class SocketTransport {
if (!isConnected()) {
logger.e(
'unable to send message, transport is not connected. Current state is $status',
null,
StackTraceNJ());
stackTrace: StackTraceNJ());

return false;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/transports/tcp_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class SIPUATcpSocket extends SIPUASocketInterface {
protocols: <String>[_tcp_socket_protocol],
tcpSocketSettings: _tcpSocketSettings);
} catch (e, s) {
logger.e(e.toString(), null, s);
logger.e(e.toString(), stackTrace: s);
_connected = false;
logger.e('TcpSocket error: $e');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/transports/web_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class SIPUAWebSocket extends SIPUASocketInterface {
protocols: <String>[_websocket_protocol],
webSocketSettings: _webSocketSettings);
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
_connected = false;
logger.e('WebSocket $_url error: $e');
}
Expand Down
4 changes: 2 additions & 2 deletions lib/src/ua.dart
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class UA extends EventManager {
rtcSession.terminate();
}
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
}
}
});
Expand All @@ -348,7 +348,7 @@ class UA extends EventManager {
Subscriber subscriber = _subscribers[key]!;
subscriber.terminate(null);
} catch (e, s) {
logger.e(e.toString(), e, s);
logger.e(e.toString(), error: e, stackTrace: s);
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sip_ua
version: 0.5.8
version: 0.6.0
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:
Expand All @@ -9,7 +9,7 @@ environment:
dependencies:
collection: ^1.18.0
crypto: ^3.0.3
flutter_webrtc: ^0.9.47
flutter_webrtc: ^0.10.4
intl: ^0.19.0
logger: ^2.0.2+1
path: ^1.6.4
Expand Down

0 comments on commit 3342a4b

Please sign in to comment.