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

Allow setting a default connection override #691

Open
thomaschaaf opened this issue Aug 26, 2021 · 3 comments
Open

Allow setting a default connection override #691

thomaschaaf opened this issue Aug 26, 2021 · 3 comments
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@thomaschaaf
Copy link

Issue Summary

We would like to use https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides in all our code. We keep accidentally forgetting it. It would be great if we could set a default connection override and if we use the redirect twiml verb that it would automatically append it.

Code Snippet

Instead of writing

const response = new VoiceResponse();
response.redirect({
    method: 'POST'
}, 'https://example.com/foo?query=123#rc=2&ct=1000');

we would like to write

const response = new VoiceResponse({ connectionOverride: 'rc=2&ct=1000' });
response.redirect({
    method: 'POST'
}, 'https://example.com/foo?query=123');

The connection override should also be appended for other things like statusCallbacks in <Gather /> aswell.

@shwetha-manvinkurke
Copy link
Contributor

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

@thomaschaaf you are welcome to submit a PR with the desired changes if you like.

@shwetha-manvinkurke shwetha-manvinkurke added status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap labels Aug 27, 2021
@mariomui
Copy link

mariomui commented Jan 6, 2023

@thomaschaaf #874
Here is the pull request for the configuration object.

Can you specify more about the gather or ping shwetha about it as I think gather might require a codegeneration tool I do not have.

@claudiachua
Copy link

Update: Internal backlog reference (DI-2544)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

4 participants