
FreeSWITCH + VAPI + Telnyx: AI Voice Agent with Human Transfer
Most AI voice demos stop at “the AI answers the phone.” In any real business, that is only the front door. The interesting part is what happens when the caller asks for Sales, Support, or a specific person — and the call needs to land on a real human. In this build I put a self-hosted FreeSWITCH PBX in front of a VAPI AI voice agent, with a Telnyx SIP trunk as the carrier. Calls land on FreeSWITCH first, get bridged out to VAPI for the AI conversation, and when the caller needs a human, VAPI issues a SIP REFER and FreeSWITCH rings the target extension — a softphone, a Yealink, or any registered SIP device. ...
