Prerequisites
What You'll Need
- A Vobiz account with API access
- A phone number purchased from Vobiz
- A web server that can receive HTTP requests (webhook endpoint)
- Basic understanding of HTTP and XML
Recommended Tools
- ngrok or similar for local development tunneling
- cURL or similar for testing webhooks
- Node.js, Python, or PHP for server-side logic
- XML validator to check syntax
Hello World Example
Start with the simplest possible voice application: answering a call and speaking a greeting.Step 1: Create a Webhook Endpoint
Set up a simple HTTP server that returns XML. Here’s a Node.js Express example:server.js
Step 2: Expose Your Server
For local development, use ngrok to create a public URL.Terminal
https://abc123.ngrok.io
Step 3: Configure Your Application
In the Vobiz Console, configure your Application’s Answer URL:IVR Menu Example
Now build an interactive IVR menu that collects caller input and routes calls accordingly.Answer Endpoint
POST /answer - Present IVR Menu
Menu Choice Handler
POST /menu-choice - Route Based on Input
Testing Your XML
Method 1: Real Phone Calls
The most accurate way to test is calling your Vobiz number from a real phone.
- Test audio quality and timing
- Verify DTMF input collection
- Check call transfer functionality
- Monitor webhook logs in real-time
Method 2: Webhook Simulation
Use cURL to simulate Vobiz webhook requests to your endpoint:
Test with cURL