With a webhook, Voys sends an HTTP request to a URL you provide when a call reaches the webhook step in your dial plan. What happens next is up to you: your server processes the request and sends something back, and the call continues based on that. Think of routing calls automatically based on your own data, looking up the caller's name and showing it on the handset, or simply passing the call on to Zapier.

Short version: caller calls → Voys sends a request to your URL → your server responds with a status (and optionally some extra data) → Voys continues the call based on that.
- Fields in the form
- Variables for your URL template
- Rules for the URL
- Setting it up in your dial plan
- What you send back
- Variable callername, three options
- Variable destination
- Examples per use case
- 1. CRM integration
- 2. Routing based on an external database
- 3. Tracking calls in Google Analytics
- 4. Email or Slack on a missed call
- 5. VIP pin code
- 6. Via Zapier to 300+ apps
- 7. Caller name from SugarCRM (PHP script)
- FAQ
- Related pages
Fields in the form
Log in to Freedom and go to Webhooks to add a webhook. The form has these fields:
- Name — how you'll find it again in your dial plan
- Description — just for yourself, it doesn't affect anything
- Caller id forwarding — which number the recipient sees: Original caller, Original called number or Suppress (privacy)
- URL template — the URL that gets called, see below for the variables
- Use IVR — turn this on if the caller enters a code first, ending it with the # key. This adds 5 extra fields: Timeout, Maximum attempts, Start message, Incorrect message and Timeout message
Variables for your URL template
{code} the entered code (only when Use IVR is on)
{did} the number that was dialled
{callerid} the caller's number
{callername} caller's name, if known
{callid} the ID of the incoming callExample:
https://webhook.yourcompany.com/check?code={code}&callerid={callerid}Voys fills in these five variables automatically before making the request.
Rules for the URL
- Start the URL with
http://orhttps://. If you leave it out,http://is added in front. - You can't use a variable in the server name, so
https://{did}.yourcompany.com/won't work. Variables later in the URL, like in the example above, still work. - Already using a variable in the server name? Then Freedom asks you to change the URL the next time you save that webhook.
Setting it up in your dial plan
- Go to Dial plan and select the phone number.
- Click the plus to add a step.
- Choose Webhook as the type and select your webhook.
- Two paths appear automatically: HTTP and IVR success and HTTP or IVR failed.
In both paths you can use your normal dial plan steps, plus two extra options: Variable callername and Variable destination (see below).
What you send back
Your server responds in application/x-www-form-urlencoded format. The only value it has to send is status. You can add destination and callername if you like.
The call takes the HTTP and IVR success path when your server answers status=ACK. Does your server answer anything else, or not answer within 5 seconds? Then the call takes the HTTP or IVR failed path, so it is worth putting your normal steps there too.
Status:
ACK input/request is valid
NAK input is invalid
ERR something went wrongJust acknowledge:
status=ACKRoute to a different number:
status=ACK&destination=%2B31502102544
status=ACK&destination=215(destination can be an external number or an internal extension)
Change the caller's name:
status=ACK&callername=VoysPartnersVariable callername, three options
- Webhooks — takes the name from your server's response
- Prefix — adds your text in front of the existing name
- Replace — replaces the name entirely with your text
Prefix and Replace also work in a dial plan step outside a webhook. Webhooks only shows up in a step under a webhook.
Variable destination
Does your server return a destination? Select Variable destination in the routing step and the call automatically goes there.
Examples per use case
1. CRM integration
On an incoming call, Voys sends callerid and did to your CRM. You look up the customer and return the name that should show up on the handset.
URL template:
https://crm.yourcompany.com/webhook?callerid={callerid}&did={did}
Response from your server:
status=ACK&callername=Marieke%20de%20Boer2. Routing based on an external database
Decide yourself where a call should go, based on the caller, the dialled number or a pin code.
URL template:
https://routing.yourcompany.com/lookup?callerid={callerid}&did={did}
Response from your server:
status=ACK&destination=%2B315021025443. Tracking calls in Google Analytics
Each campaign gets its own number from a block. Voys calls your URL with the campaign (did) and the caller (callerid). You log the conversion, then Voys routes the call on to the real company number.
URL template:
https://analytics.yourcompany.com/call-tracking?campaign={did}&callerid={callerid}
Response from your server:
status=ACK&destination=0201234564. Email or Slack on a missed call
This usually goes through Zapier: your webhook sends a request to a Zapier catch hook, which forwards it to email, SMS or Slack.
URL template (Zapier catch hook):
https://hooks.zapier.com/hooks/catch/123456/abcdef?callerid={callerid}&did={did}
What Zapier receives:
{
"callerid": "+31612345678",
"did": "0502102544"
}5. VIP pin code
With Use IVR turned on, the caller enters a code and your server checks whether it is valid.
URL template:
https://vip.yourcompany.com/check?code={code}&callerid={callerid}
Valid code:
status=ACK&destination=210
Invalid code:
status=NAK6. Via Zapier to 300+ apps
Same idea as above, but as a general trigger. You can pass all five variables and let Zapier decide what to do with them, for example in Slack, Gmail, Google Calendar, Zendesk, Mailchimp, Evernote or Dropbox.
URL template:
https://hooks.zapier.com/hooks/catch/123456/xyz789?callerid={callerid}&did={did}&callername={callername}
What Zapier receives:
{
"callerid": "+31612345678",
"did": "0502102544",
"callername": "Voys Partners"
}7. Caller name from SugarCRM (PHP script)
This script looks up the caller's number in your SugarCRM database and sends the name back, so it shows up on the handset. It searches contacts first (work phone, then mobile phone) and then accounts (office phone). It only answers requests from the Voys IP ranges.
URL template:
https://crm.yourcompany.com/cid_name_lookup.php?phonenumber={callerid}&callername={callername}
Response from your server:
status=ACK&callername=Marieke%20de%20BoerIn your dial plan, put a Variable callername step with the option Webhooks in the HTTP and IVR success path.
FAQ
Related pages
Email for missed calls with Zapier
