Skip to content

Commit c614caa

Browse files
authored
Merge pull request #127 from SureVoIP/master
Expose Register Expires setting and if we Register at all.
2 parents b68eb7a + 0a18a06 commit c614caa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ 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 = uaSettings.register;
107+
_settings.register_expires = uaSettings.register_expires;
106108
_settings.register_extra_contact_uri_params =
107109
uaSettings.registerParams.extraContactUriParams;
108110

@@ -552,6 +554,13 @@ class UaSettings {
552554
String webSocketUrl;
553555
WebSocketSettings webSocketSettings = WebSocketSettings();
554556

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

0 commit comments

Comments
 (0)