Skip to content

Commit

Permalink
add contact_uri as parameter (#426)
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Albuquerque <paulo.albuquerque>
  • Loading branch information
pjalbuquerque authored May 8, 2024
1 parent 73e205d commit 05c2673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/lib/src/register.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class _MyRegisterWidget extends State<RegisterWidget>
settings.displayName = _displayNameController.text;
settings.userAgent = 'Dart SIP Client v1.0.0';
settings.dtmfMode = DtmfMode.RFC2833;
settings.contact_uri = 'sip:${_sipUriController.text}';

helper!.start(settings);
}
Expand Down
2 changes: 2 additions & 0 deletions lib/src/sip_ua_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class SIPUAHelper extends EventManager {
uaSettings.sessionTimersRefreshMethod;
_settings.instance_id = uaSettings.instanceId;
_settings.registrar_server = uaSettings.registrarServer;
_settings.contact_uri = uaSettings.contact_uri;

try {
_ua = UA(_settings);
Expand Down Expand Up @@ -749,6 +750,7 @@ class UaSettings {
String? displayName;
String? instanceId;
String? registrarServer;
String? contact_uri;

TransportType? transportType;

Expand Down

0 comments on commit 05c2673

Please sign in to comment.