call.cgi API

Fonality allows the use of an HTTP-based API (call.cgi) for enabling basic operations such as authentication and making phone calls. This capability can be used with your web systems or other applications to integrate with Fonality service.  

This information is provided for reference purposes only. Technical support for this capability is beyond the scope of service of what’s provided in the support plan for Fonality service. Fonality is unable to provide assistance with debugging of customized applications. 

The API requires several URL parameters for both authentication and for instructing the system how to place the call.  

 

Note: A simple HTTP request cannot be used to make calls. For security purposes, call requests must be made through an application that implements the session information and HTTP header. 

 

Token Handling Engineering Note:

 

The token doesn't expire unless the user logs out of the plugin, but the front-end can check the response of the dial request and if it fails, it will send a login request to refresh the token value.

 

Re-negotiating the token every 4 hours is recommended.

 

Use Case Testing:

Call.cgi API use case -

click-tcall_sample/pcapng -

 

Return to Documentation Home I Return to Sangoma Support