Eqivo
Eqivo implements an API layer on top of FreeSWITCH facilitating integration between web applications and voice/video-enabled endpoints such as traditional phone lines (PSTN), VoIP phones, webRTC clients etc.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
Eqivo is an open-source telephony and real-time communications API platform. It started as a tribute to, and a reimplementation of, the unmaintained Plivo Framework (referred to below as the legacy framework). It has no connection to Plivo's cloud service, and the developers of the two projects are not affiliated in any way. In most scenarios, Eqivo can be used as a drop-in replacement for the legacy framework, and it also adds a few extensions.
How It Works
Eqivo hands both signaling (SIP, Verto, etc.) and media (RTP) over to FreeSWITCH. It sits between FreeSWITCH and your business application:
- Initiating actions: Your application calls Eqivo's RestAPI to start and control calls. All requests use the
POSTmethod and RFC 7617 Basic authentication, parameters are encoded asapplication/x-www-form-urlencoded, and responses are JSON. The API is backward compatible with the legacy framework, and an official OpenAPI specification is also provided. - Handling events: When an event such as an incoming call occurs, Eqivo requests a webhook endpoint provided by your application. The application returns RestXML, which describes how to handle the call. RestXML is also compatible with the legacy framework, and can be seen as a dialplan that is easier to program dynamically.
Key Features
RestXML Directives
Conference: multi-party conferences, with support for muting, enter/exit tones, hold music, moderator controls, conference recording and DTMF callbacksDial: places a new call and bridges it; can dial several destinations at once, and once the first one answers the others are canceled automaticallyGetDigits: collects keypress (DTMF) inputGetSpeech: speech recognition input; the default engine is pocketsphinxSpeak: text-to-speech; the default engine is flitePlay: plays local files, remote media or generated tonesRecord: records audio, with support for wav and mp3- Others:
PreAnswer(early media),Redirect,SIPTransfer,Hangup,Wait
RestAPI
- Calls: single call (Call), concurrent bulk outbound calls (BulkCall), race-style group calls (GroupCall), hangup, scheduled hangup, playing media into a call in progress, starting and stopping recording, sending DTMF, SoundTouch audio effects, call transfer, and more
- Conferences: listing conferences and members, muting and unmuting, hold, kick, playing audio or TTS in a conference, conference recording, and more
Eqivo Extensions
- M:N deployment: multiple Eqivo instances can connect to multiple FreeSWITCH instances (cores), no longer limited to the legacy framework's one-to-one relationship
- Answering machine detection (AMD): supports synchronous and asynchronous modes, with configurable detection timeout and speech and silence thresholds
- You can use
CoreUUIDto specify which FreeSWITCH instance handles a request - You can set an instance identifier, which makes it easy to tell which node handled a request when running behind a load balancer
Target Users
- Developers and companies that need self-hosted programmable voice capabilities
- Former Plivo Framework users who need a maintained alternative
- Teams building call centers, IVR and outbound dialing systems on FreeSWITCH
Installation and Deployment
The officially recommended way is to deploy with containers:
docker pull rtckit/eqivo
docker run rtckit/eqivo
Each release comes with two kinds of images: the production image contains only Eqivo and the PHP runtime, while the debug image with the -full suffix includes a complete Debian userland to make troubleshooting easier.
Other installation methods:
- Phar package: download
eqivo.pharfrom GitHub Releases - PHIVE:
phive install eqivo - Source code: clone the GitHub repository, run
composer update, then run./bin/eqivo
The official rtckit/eqivo-sandbox repository provides examples of common scenarios and Docker Compose configurations.
Technical Requirements
- PHP 8.1 or later, along with the required extensions (usually shipped with PHP core). When using the container images, you don't need to prepare these separately
- At least one FreeSWITCH instance with Event Socket (ESL) enabled
- The network must allow traffic in both directions: Eqivo must be able to reach FreeSWITCH's ESL port and your application's webhooks; FreeSWITCH must be able to reach Eqivo's Outbound service (default port 8084); and your application must be able to reach Eqivo's REST service (default port 8088)
Configuration
- Supports JSON and YAML configuration files, command-line arguments and environment variables. These can be combined, which makes it suitable for managing secrets in orchestration systems such as Kubernetes
- Compatible with the legacy framework's configuration file format
- The default configuration can't be used as-is in real-world scenarios; you need to configure it for your own application
Security Features
- The REST API uses Basic authentication (restAuthId and restAuthToken)
- IP allowlists restrict where requests can come from, with support for CIDR ranges (not supported by the legacy framework)
- Outgoing RestXML requests and notification requests are signed with an authentication token
- Remote TLS certificates and hostnames are verified by default
- Input is sanitized
Community
The source code is hosted on GitHub (rtckit/eqivo), and images are published on DockerHub. For community discussion, you can join the Zulip chat room or GitHub Discussions.
Discover more
AnonAddy
Email forwarding service for creating aliases.
AnyCable
Realtime server for reliable two-way communication over WebSockets, Server-sent events, etc.
Apprise
Apprise allows you to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc.
Artalk
Comment system built in Golang, providing a lightweight and highly customizable solution for adding comments to your website.
Centrifugo
Language-agnostic real-time messaging (Websocket or SockJS) server.
Ergo
Modern IRCv3 server written in Go, combining the features of an ircd, a services framework, and a bouncer.