Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we make call and register user without websocket URL #1058

Open
ElectronMB opened this issue Nov 6, 2023 · 0 comments
Open

Can we make call and register user without websocket URL #1058

ElectronMB opened this issue Nov 6, 2023 · 0 comments

Comments

@ElectronMB
Copy link

--> 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant