Skip to content
Developer Guide

VoipNow Call Events

This page describes how you can trigger events each time an extension receives or places a phone call.

Overview

This is the Call Events Guide. It explains the Service interface and the responses of the service. The Call Events is a web service that enables developers to interact with the system every time an Extension receives, terminates or places a call. The following events are supported by the service:

  • Dial-In is an event that occurs when a call is received by an extension;
  • Dial-Out is an event that occurs when a call is made by an extension;
  • Hangup is an event that occurs when a call the extension is involved in is terminated;
  • Answer on incoming call: The request will be sent when an incoming phone call is answered;
  • Answer on outgoing call (by the other party): The request will be sent when an outgoing phone call is answered by the other party.

How It Works

A Call Event has the following properties:

NameDescription
Event typeThis is the event on which the associated script is executed. Can be set to Dial-In, Dial-Out or Hangup.
Request methodHTTP method that is used when executing the script. Can be set to GET or POST.
Script URLURL address of the script that is executed when the event occurs.

And occurs as described below:

  • STEP 1: When a event occurs on an Extension,the system verifies if that event requires that a request is made.
  • STEP 2: If there is an event, the system will make a HTTP request to URL using the associated HTTP method.
    The system adds extra parameters to the request depending on the method used:
    • GET - parameters are added to the query part of the request.
    • POST - parameters are added to the body of the request.

Extra Parameters

NameOccurrenceTypeDescription
CallID1StringThe call's unique identifier.
CallerIDNum1StringThe caller's CallerID number.
CallerIDName1StringThe caller's CallerID name.
CalledDID1StringThe public number of the called extension (if available).
CalledExtension1StringThe extension that received the call. Supported format: extended extension number (e.g. yyyy*zzz).
CallStatus1StringThe call status. This parameter is set to the following values, depending on the event type.

For the Dial-In and Dial-Out event types, the parameter is set to CALLING.

For the Hangup event type, the parameter can have one of the following values:
  • ANSWER (call answered, successful call)
  • BUSY (busy signal)
  • NOANSWER (call not answered, timed out)
  • CANCEL (caller hung up before callee picked up)
  • CONGESTION (dialed number not recognized)
  • CHANUNAVAIL (channel unavailable, peer may not be registered)
CallFlow1StringThe call flow:
  • IN (calls received by the extension)
  • OUT (calls made by the extension)
CallerExtension1StringThe extension that made the call. Supported format: extended extension number (e.g. yyyy*zzz).
CalledNumber1StringThe number that was dialed by the caller (can be an external number: 003258422544, the extended IVR number: 0003*001 or the short IVR number: 001.)
CallAPIID1StringThe call ID that is auto-generated and maintained for the entire duration of the call, no matter how many transfers are performed. This variable can be used to identify in the events the calls started using a UnifiedAPI request.

How to Add a Call Event

In order to be able to use Call Events, you must first assign it on an Extension. The system supports two methods to assign a Call Event.

Add via the Voipnow Web Management Interface

The system allows you to add call events using the web management interface. More details can be found here.

Add via UnifiedAPI

A Call Event can be added using the UnifiedAPI PhoneCallEvents Service.

Last updated: Jan 12, 2026