Skip to content

Commit afc80cc

Browse files
fix: persist 'ws_uri' in _saveSettings to enable proper registration (#542)
1 parent 38dbab7 commit afc80cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

example/lib/src/register.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ class _MyRegisterWidget extends State<RegisterWidget>
127127
_saveSettings();
128128

129129
currentUser.register(SipUser(
130+
wsUrl: _wsUriController.text,
131+
//this is the websocket url which was missing in the original code hence it
132+
//was showing null in the register method of sip_user_cubit.dart and always
133+
//redirected to 'wss://tryit.jssip.net:10443', present inside sip_ua_helper.dart
134+
//161: uaSettings.webSocketUrl ?? 'wss://tryit.jssip.net:10443',
135+
//this will help people trying out the example to register with the correct url
136+
//without changing the code in sip_ua_helper.dart
130137
selectedTransport: _selectedTransport,
131138
wsExtraHeaders: _wsExtraHeaders,
132139
sipUri: _sipUriController.text,

0 commit comments

Comments
 (0)