software, business, and fun
cambodia

VOIP Backend Posting

The project needed a minimum payload to sent over HTTP to test the VOIP service with. I ended up boiling it down to:

'username' => username,
'password' => password,
'alarm_type' => 'immediate',
'tts_or_wav' => 'tts',
'phone_recips' => '5555555',
'tts_msg' => 'this is an automated test from a ruby script. so cool.',
'deliv_type' => 'phonecall'

Sure enough, the creepy text to speech system called me up. This made testing this project pretty cool. For full testing it will send sample request to the VOIP server, and my phone rings a few seconds later.

The full extent of that project was to play an arbitrary WAV file to the receiving phone number, so there were some extra tests involving verifying the WAV, etc. If I were really lazy, I would set up a speech recognition engine over a VOIP receiver and match the test WAV to what comes in over the phone, and make sure it’s understandable.

It would be one of the strangest rake tasks I can think of.

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment