Can we make call and register user without websocket URL
ElectronMB opened this issue · 0 comments
ElectronMB commented
--> Can we register the user without a websocket URL for example
Example:
Normally we use code like that for registration of users.
const server = 'wss://domain_name:__port__'
const options = {
aor: `AOR`,
userAgentOptions: {
displayName: '__display_name__',
authorizationUsername: '__username__',
authorizationPassword: '__password__',
transportOptions: {
server,
},
uri: UserAgent.makeURI(`__URI__`),
},
}
const user = new SimpleUser(server, options)
try {
await user.register(options)
await user.connect(options)
} catch (err) {
console.log('💥💥💥 Registration or connection failed:', err)
}
But I want to make registered users only with
"username", "password", "domain", and URI and without the wss(websocket) server URL.
I want to make a call using TSL & SRTP enabled for the call so how can we make these happen?
any code for the same?