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

Implement asynchronous AMD for Twilio IVR #476

Merged
merged 1 commit into from
Aug 10, 2021
Merged

Conversation

rowanseymour
Copy link
Contributor

@rowanseymour rowanseymour commented Aug 10, 2021

Currently we're telling twilio to send back the AMD results on the same handle?action=start endpoint which just results in that being called twice and blowing up the second time.

So now it calls the status endpoint instead. If we see something like AnsweredBy=machine_start we mark the connection as errored, so that next time we resume, we see that, and send back error and <Hangup>.

Note that in https://github.com/nyaruka/mailroom/pull/474 I got the synchronous version of AMD working but it results in a ~3 second pause at the start of every call which isn't ideal.

@rowanseymour rowanseymour merged commit 10924b0 into main Aug 10, 2021
@rowanseymour rowanseymour deleted the twilio_async_amd branch August 10, 2021 21:08
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.

2 participants