Skip to content

Commit edd8c70

Browse files
committed
Expose Register Expires setting and if Register at all.
1 parent b68eb7a commit edd8c70

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class SIPUAHelper extends EventManager {
103103
_settings.display_name = uaSettings.displayName;
104104
_settings.authorization_user = uaSettings.authorizationUser;
105105
_settings.user_agent = uaSettings.userAgent ?? DartSIP_C.USER_AGENT;
106+
_settings.register_expires = uaSettings.register_expires;
106107
_settings.register_extra_contact_uri_params =
107108
uaSettings.registerParams.extraContactUriParams;
108109

@@ -552,6 +553,13 @@ class UaSettings {
552553
String webSocketUrl;
553554
WebSocketSettings webSocketSettings = WebSocketSettings();
554555

556+
/// May not need to register if on a static IP, just Auth
557+
/// Default is true
558+
bool register;
559+
560+
/// Default is 600 secs in config.dart
561+
int register_expires;
562+
555563
/// Mainly used for RFC8599 Push Notification Support
556564
RegisterParams registerParams = RegisterParams();
557565

0 commit comments

Comments
 (0)