Hello,
I'm working (for fun) on the integration with Webadm and Asterisk in order to be able to create voice OTP.
I managed to do that using mail OTP. I configured postfix to intercep all outgoing email in a file and use Google TTS to call the user and tell him the OTP. But with this configuration my webadm server is not able to send email.
In order to do that properly the best way it's to configure webadm to be able to create automatically a file (.call) (instead of sending an email) to automatically call the user.
With Asterisk we just need to create a .call file on the folder /var/spool/asterisk/outgoing/
The file must have the following syntax (using GoogleTTS for the Text To Speech)
Channel: SIP/$PhoneNumber
Application: agi
Data: googletts.agi,"Hello here your One Time Password: $OTP i repeat $OTP",en
Once the phone call placed the file is automatically deleted.