OTP in a file for OTP over the voice with Asterisk

317 views
Skip to first unread message

Tubezleb

unread,
Feb 25, 2016, 11:23:50 PM2/25/16
to RCDevs Security Solutions - Technical
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.

Spyridon Gouliarmis (RCDevs)

unread,
Feb 26, 2016, 5:06:19 AM2/26/16
to RCDevs Security Solutions - Technical
You should be able to create a custom script for SMSHub that, instead of calling an SMSC, creates the file and drops it into the right folder. Otherwise configure WebADM as if you were sending an SMS OTP through your custom connector.

Reply all
Reply to author
Forward
0 new messages