Outbound Calls with VoiceObjects
Thursday, April 12th, 2012Do you need to place outbound calls, detect answering machines, and want to use VoiceObjects to drive the call flow once the call is established? Here’s a quick guide on how to accomplish that.
Generally, I recommend the use of CCXML for any outbound application, be it a VXML app generated by VoiceObjects or any other application server. CCXML will introduce you to the world of Call Progress Analysis, which does answering machine detection, and more.
To realize outbound calling utilizing Voxeo’s Public Cloud, the process generally looks as follows:
- Upload your CCXML script to Evolution’s webhosting space (under “Files, Logs and Reports”).
- In the “Application Manager”, create a new application in Evolution for voice calls, and select one of the available “Prophecy 11 CCXML” entries as the application type. Browse for the CCXML script you just uploaded and set it as your application URL.
- Ask our Support team for an outbound token for your application.
That’s it. You can now use the following URL to launch a CCXML session, which will take care of placing an outbound call:
- XXX would be the tokenid you will see in your application under Contact Methods once Support has given you one;
- YYY would be the phone number you want the call appear to be coming from;
- ZZZ would be the number to dial.
Need to pass additional parameters to the application? Any custom parameter can be passed into the VoiceObjects dialog context by attaching varXXX parameters to the URL. Your VO application will need to have a Variable object whose ReferenceID is what comes after the var prefix (in my example: Var1, Var2). After the call is launched, the variables will have the values you passed in.
Don’t have a CCXML script handy for your application? No problem, I prepared one for you. You would need to adjust the following places:
- Change the VSN variable to the VSN (VoiceObjects Service Name) of your VO(D) service.
- Change the VOURL variable to the URL where your VO server sits. If it is a VOD instance, ask our Support for the URL of your specific VOD instance
- Locate all <dialogstart> and <dialogprepare> elements that have a namelist attribute and add varVar1 etc. to the namelist, to pass those custom parameters to the VO app.
So how can you determine whether an answering machine was reached, and branch accordingly in your application?
In your VO application, define an Expression object with the SESSION function and detectedMachine as the argument. That expression will return true if the call was answered by an answering machine, and false otherwise. That way you can add a branch at the beginning of your VO app: to either just leave a message (if detectedMachine=true), or start the interactive dialog (if detectedMachine=false).
This should get you going on outbound applications with VoiceObjects. If you have any questions at all, please let me know!



