I'm trying to record in-call audio tehn process it and say the results back to the caller solely using Twilio.
For the <Record>
TwiML element I can provide a separate callback URL after recording complete (action
parameter, thus the call handling will be transferred there) and one after recording stored.
There are two problems arising here.
First, the processing of the recorded audio can take arbitrary amount of time so I can easily run out of the 5s limit (fortunately not in my case)
Second, I need to interchange data between those two callbacks. Since these two callbacks are executed separately, the memory isn't shared between them. I found no API for storing any persistent data using Twilio, so it looks like that I need to rely some third-party database service.
Can I acchive this somehow without relying on any external service for handling those callbacks?
Note: I found this StackOverflow answer which says that data persistence is impossible on Twilio, but the question asked a different thing. I also hope that the technology has been evolved since then.