philnash / useful-twilio-functions

A set of useful Twilio Functions.
MIT License
54 stars 19 forks source link

Support for machine detection #3

Open mgvarley opened 6 years ago

mgvarley commented 6 years ago

This is a great example and really helped to get an understanding of Twilio functions however to solve the hunt group requirement which is a common real-life scenario for many people this will not work as it does not support answer machine detection. Would there be any chance of including an example using the Rest API and MachineDetection parameter? Many thanks

philnash commented 6 years ago

Thanks, for the comment.

I can certainly work on a REST API version using answering machine detection. It would have quite a different architecture to this Function. I'll be sure to comment here once I've completed it. In the meantime, can I recommend you take a look at the API documentation for AMD: https://www.twilio.com/docs/voice/answering-machine-detection

mgvarley commented 6 years ago

@philnash thanks for the reply. I solved the issue with some help from Twilio support, they say that AMD can be a bit hit and miss so gave an example using 2 functions: one for the Hunt Group (findme) and the other for Human Detection (i.e. press any key to accept the call). I'll submit a PR with sample code which may help others implement this flow.