---
title: "Give Legacy Linux Devices a Voice"
description: "Legacy Linux devices such as elevator intercoms and door entry systems often have microphones and speakers but can only dial a single hard-coded number. By adding the open-source PJSIP SIP stack to the device and connecting it to a Twilio SIP Domain, these devices gain access to modern voice capabilities. The cloud handles IVR menus, PSTN transfers, live agent connections via the Voice SDK, and AI agents using Conversation Relay or Media Streams. A proof of concept using an elevator help line in Twilio Studio demonstrated that DTMF keypresses and PSTN transfers work over standard SIP without proprietary extensions. The approach avoids costly hardware replacement and allows every device in the field to improve as cloud AI improves."
---

# Give Legacy Linux Devices a Voice

[Twilio](https://yomu.fyi/company/twilio) · Hao Wang · Oct 28, 2026

**Type:** Tutorial

## Summary

Legacy Linux devices such as elevator intercoms and door entry systems often have microphones and speakers but can only dial a single hard-coded number. By adding the open-source PJSIP SIP stack to the device and connecting it to a Twilio SIP Domain, these devices gain access to modern voice capabilities. The cloud handles IVR menus, PSTN transfers, live agent connections via the Voice SDK, and AI agents using Conversation Relay or Media Streams. A proof of concept using an elevator help line in Twilio Studio demonstrated that DTMF keypresses and PSTN transfers work over standard SIP without proprietary extensions. The approach avoids costly hardware replacement and allows every device in the field to improve as cloud AI improves.

## Context

Legacy Linux devices like elevator intercoms and door entry systems have microphones and speakers but are limited to dialing a single number. The post presents a method to add SIP connectivity using PJSIP and Twilio to enable IVR, PSTN, live agents, and AI without replacing hardware.

## Approach / What changed

Add the open-source PJSIP SIP stack to the legacy Linux device, connect it to a Twilio SIP Domain, and use Twilio Programmable Voice (Studio, TwiML, Voice SDK) to route calls to IVR, PSTN, live agents, or AI agents. The proof of concept uses an elevator help line in Twilio Studio with a Studio Flow that handles DTMF input and PSTN transfer.

## Takeaways

- PJSIP is an open-source SIP stack that runs on embedded Linux devices and handles registration, call setup, media streaming, and reconnection after network drops.
- Twilio SIP Domain authenticates the device and provides voice building blocks: IVR, PSTN connectivity, live agents via Voice SDK, and AI agents via Conversation Relay or Media Streams.
- The proof of concept demonstrated that DTMF digits (RFC 4733) are negotiated automatically in the SDP, and calls can be transferred to PSTN without proprietary extensions.

## FAQ

### Why use SIP instead of WebRTC for legacy devices?

WebRTC requires a browser or modern runtime, which many legacy Linux devices lack. SIP is the native language of the phone network and is more practical for embedded devices with old distributions, custom kernels, and limited CPU.

### What voice experiences can a SIP-connected device support?

Once connected via SIP, the device can support IVR self-service, PSTN transfer to a human, live agents using Twilio Voice SDK in a browser, and AI agents using Conversation Relay or Media Streams.

### How does the proof of concept handle a trapped passenger who doesn't press any key?

The Studio Flow is designed so that if the caller presses nothing, says something, or presses the wrong key, the call is transferred directly to the on-call operator via PSTN, ensuring a real person answers.

**Tags:** [Linux](https://yomu.fyi/topic/linux), [PJSIP](https://yomu.fyi/topic/pjsip), [SIP](https://yomu.fyi/topic/sip), [Twilio](https://yomu.fyi/topic/twilio), [Voice AI](https://yomu.fyi/topic/voice-ai)

- Source: [Twilio](https://www.twilio.com/en-us/blog/developers/tutorials/integrations/voice-legacy-linux-devices)
- Source URL: https://www.twilio.com/en-us/blog/developers/tutorials/integrations/voice-legacy-linux-devices
- Ingested by Yomu: 2026-10-29T00:00:21.396Z

[Read original post](https://www.twilio.com/en-us/blog/developers/tutorials/integrations/voice-legacy-linux-devices)
