Next Article in Journal
Time-Aware Detection Systems
Previous Article in Journal
Building a New Sentiment Analysis Dataset for Uzbek Language and Creating Baseline Models
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Proceeding Paper

Integration of Asterisk IP-PBX with ESP32 Embedded System for Remote Code Execution †

Facultad de Ingeniería, Diseño e Innovación (FIDI), Institución Universitaria Politécnico Grancolombiano, 050034 Medellín, Colombia
Facultad de Ciencias Básicas e Ingeniería, Corporación Universitaria Remington, 050012 Medellín, Colombia
Author to whom correspondence should be addressed.
Presented at the 2nd XoveTIC Congress, A Coruña, Spain, 5–6 September 2019.
Proceedings 2019, 21(1), 38;
Published: 5 August 2019
(This article belongs to the Proceedings of The 2nd XoveTIC Conference (XoveTIC 2019))


This paper explains the design and construction of a platform that implements the ESP32 embedded system and connects it to a telephone asterisk plant, to exchange data on both sides, commands sent from a telephone to the esp32 and make calls from an order of sending from a digital input of esp32. It is a low-cost device that can be implemented through the use of Wi-Fi, and as a use in the industry, it has a role in analogue communication in buildings, for example.

1. Introduction

Internet of Things is a concept based on the connection of electronic devices with each other or through the Internet, which has been generating expectation for years as it is expected to be a great driver of digital transformation in homes and cities, as well as in companies. IP telephony has taken a central role in the information highway so that the network can interconnect each home and each business through a packet switching network [1,2].
In this work, the Asterisk pbx was used based on the Issabel Linux distribution, which allowed to create dial plans to receive calls from the users and through an IVR to make a POST request to the ESP32 platform, which within its code has established methods that for investigation, allowed to move a servo motor and turn on led lights. Since the communication was bidirectional, from the side of the ESP32, push buttons were connected, which when pushed, sent commands to the code execution esp32, within this code a POST is made to a site ready to listen to POST requests in the Apache server that runs ISSABEL, this web service, performs an internal code execution through Asterisk and allows to raise telephone calls using Festival as a voice dictation service [3].
The connectivity technology used was Wi-Fi, the possibilities that this work opens up for a real application are several, among them the use of esp32 technology to connect with IP-PBX inside buildings, an additional infrastructure different from the IP will not be necessary.

2. Materials and Methods

  • Operating System Linux Issabel [4].
  • Dev Kit ESP32 by expressif
  • Softphone IP PhonerLite
  • Oracle VM VirtualBox [5].

3. Experimental Work and Results

A Wi-Fi connection was configured that was common to the three components of the work, the SERVER IP-PBX, the SOFTPHONE client and the ESP32 see Figure 1a, the SERVER IP-PBX works as a bridge in the communication between the ESP32 and the users that use a softphone, although it can be a hardphone too, said server receives POST requests through a web form Figure 1b.
The received web requests are interpreted in bash language and make a PORT request through curl in Linux, to send the POST request again to ESP32 and this perform an action like opening a garage, which can be seen implemented in Figure 2.
Also in Figure 2, you can see two buttons, which allow interacting from the esp32 to the SERVER-PBX, making automatic calls, which use the voice dictation of the service included in Issabel called Festival, which is a Text To Speech, and was given a use for example to warn if someone is pressing the P or G button.
The implementation of the work allows the use of this connection architecture in a real case such as analogue cytophony, which can be replaced in its common point by an esp32 and in the end users by ip telephony, allowing to obtain greater benefits such as interacting with actions to be executed remotely and not only the voice.

Author Contributions

All work was done by J.P.B.L.

Conflicts of Interest

The author declares no conflict of interests.


  1. Herranz, A.B. Desarrollo de Aplicaciones Para IoT con el Modulo ESP32. Universidad de Alcalá, Spain. 2019. Available online: (accessed on 20 May 2019).
  2. Gomez, J.; Gil, F. Lógica de marcado de dialplan. In VoIP y Asterisk, 2nd ed.; Grupo Editorial Ra-Ma: Madrid, Spain, 2014; Volume 1, Chapter 4; pp. 99–125. [Google Scholar]
  3. Cusco, V.A. Implementación de una Central Telefónica Voip Interactiva, Utilizando Agi-Php y un Motor de Base de Datos, Para Consulta de Información de Estudiantes en el ditic de la u.t.a. Universidad Técnico de Ambato, Ecuador. 2016. Available online: (accessed on 20 May 2019).
  4. Oracle VM Virtualbox. Available online: (accessed on 15 May 2019).
  5. Issabel Project—Unified Communications and More. Available online: (accessed on 15 May 2019).
Figure 1. (a) Device topology; (b) web form.
Figure 1. (a) Device topology; (b) web form.
Proceedings 21 00038 g001
Figure 2. Implementation of ESP32 with servo motor.
Figure 2. Implementation of ESP32 with servo motor.
Proceedings 21 00038 g002

Share and Cite

MDPI and ACS Style

López, J.P.B.; Pérez, Y.M. Integration of Asterisk IP-PBX with ESP32 Embedded System for Remote Code Execution. Proceedings 2019, 21, 38.

AMA Style

López JPB, Pérez YM. Integration of Asterisk IP-PBX with ESP32 Embedded System for Remote Code Execution. Proceedings. 2019; 21(1):38.

Chicago/Turabian Style

López, Juan Pablo Berrío, and Yury Montoya Pérez. 2019. "Integration of Asterisk IP-PBX with ESP32 Embedded System for Remote Code Execution" Proceedings 21, no. 1: 38.

Article Metrics

Back to TopTop