Skip to content

should'nt settings done on SipProvider be used for registration #33

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

Open
hajothelen opened this issue Feb 21, 2025 · 1 comment
Open

Comments

@hajothelen
Copy link
Contributor

Hi,

may be I do not correctly understand how registration of an User Agent should work but here is my question:

When I try to register a user agent to my phonesystem then I create a SipProvider with default config. and then I use a RegisteringUserAgent to do the registration with RegisteringUserAgent.loopRegister(...).

The thing is SipProvider has some allowed methods configured but what is configured ther is not used for registration and hence the registration request send to the SIP server does not contain any allowed methods.

I would expect that, when in RegistrationClient.register(...) the SipMessage is created, the configuration from SipProvider is used.

Is this a bug or a lack of understanding?

@haumacher
Copy link
Owner

The SipProvider defines the basic transport. The RegistrationClient uses this transport to send REGISTER packets to the registrar (typically your VOIP router). The basic settings are configured in SipOptions, while the additional settings for registration are given in RegistrationOptions.

You can try out the process with org.mjsip.examples.UserAgentCli by copying the default/template settings /mjsip-examples/.mjsip-ua.template to /mjsip-examples/.mjsip-ua and adjust them to your environment before start.

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

2 participants