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

Add configuration parameter for automatically sending an initial response #892

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

jamesaylett
Copy link

Resolves issue #865.

Adds a configuration parameter to allow turning off automatically sending provisional responses. Defaults to current behaviour.

Comment on lines +275 to +281

/**
* If true, a first provisional response after the 100 Trying will be sent automatically if UAC does not
* require reliable provisional responses.
* @defaultValue `true`
*/
sendInitialProvisionalResponse?: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please match style by adding this new option in alphabetical order - thanks.

@@ -284,7 +284,8 @@ export class UserAgent {
transportOptions: {},
uri: new URI("sip", "anonymous", "anonymous.invalid"),
userAgentString: "SIP.js/" + LIBRARY_VERSION,
viaHost: ""
viaHost: "",
sendInitialProvisionalResponse: true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please match style by adding this new option in alphabetical order - thanks.

@john-e-riordan
Copy link
Collaborator

Other than the suggested changes to matching style, looks good to me.

@john-e-riordan
Copy link
Collaborator

Oh - docs will need to be re-generated.

@james-criscuolo james-criscuolo merged commit 1964c4b into onsip:master Jan 26, 2021
@james-criscuolo
Copy link
Collaborator

Thanks again! I'll make the suggested changes in a follow-up commit now.

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

Successfully merging this pull request may close these issues.

3 participants