Skip to content

Add configuration parameter for automatically sending an initial response - #892

Merged
james-criscuolo merged 1 commit into
onsip:masterfrom
jamesaylett:optional-auto-progress
Jan 26, 2021
Merged

james-criscuolo merged 1 commit into
onsip:masterfrom
jamesaylett:optional-auto-progress

Conversation

@jamesaylett

Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread src/api/user-agent.ts
userAgentString: "SIP.js/" + LIBRARY_VERSION,
viaHost: ""
viaHost: "",
sendInitialProvisionalResponse: true

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@john-e-riordan

Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants