Hello. I want to allow the user to submit a request to technical support:
He presses zero and is taken to the dialplan.
- The message “leave a message” is played.
- Voicemail is recorded.
- The message “thank you for your request” is played.
- A script is launched that takes the recorded message, recognizes it and sends everything to our SD via the API.
Will something like this work for me or am I thinking in the wrong direction?
[voicemail-recog]
exten = 1234,1,Answer()
exten = 1234,2,Playback(ready_to_record)
exten = 1234,3,Voicemail(1234,u)
exten = 1234,4,Playback(thank_you)
exten = 1234,5,Hangup()
; h for after-hangup
same = h,System(/var/lib/asterisk/agi-bin/SCRIPT.py ${CALLERID(num)} {CALLERID(name)})
Thank you.