I'm a newbie and pardon me if my question do not make sense. I Would like to send a voice mail with some message if user do not answer/declined outbound call.
Steps Followed:
I am using 'textPlus' mobile app and got a US number. I could successfully place an outbound call to the US number which I got in textPlus app. Also I noticed that if call is unanswered/declined by the user , twilio is delivering a voice mail with the same message which had been used for making out bound call to the textPlus app number.
I want to change responses for cases if outbound call answered vs unanswered/declined.
Approaches I tried:
I tried subscribing to the 'statusCallbackEvent' events and use 'modify call in-progress' api to change the text if outbound call is 'busy/no-answer/declined'. Unfortunately, it is generically showing 'completed' status but not 'busy,no-answer,declined' like mentioned in article. Caveat : as twilio out bound call it self is delivering voice mail if unanswered/declined, it is sending status as answered. So I could not able to distinguish between calls answered vs voice mail delivered.
I did try this approach and understood that this will work for in bound calls
I even tried subscribing to AMD by 'MachineDetection: Enable'. Apparently, by the time it detects call moves to 'completed' stage. Reference article.
Help required
- How to distinguish busy/no-answer/declined statuses
- Suggest me with right approach to achieve above requirement. Do let me know if am missing anything.