Build a Proxy to Connect a Call Between Two Twilio Accounts via SIP
Blog post from Twilio
Connecting voice calls between two different Twilio accounts can be effectively achieved using Twilio Application Connect, which offers optimized pricing and is specifically designed for this purpose. However, for scenarios where Application Connect is not suitable due to technical constraints or user preferences, building a SIP proxy server is a viable alternative. This approach involves configuring the destination Twilio account to accept SIP calls by adjusting IP ACLs or credentials and utilizing the open-source Kamailio SIP Server Project to create a proxy. The blog post provides a detailed guide on setting up this system using AWS and Terraform, including two installation options: a single EC2 instance for a quick proof of concept or a network load balancer with autoscaling for a more production-ready solution. It emphasizes the importance of customizing the solution for enterprise needs, including scalability, security, and monitoring, while also providing resources and instructions for building and testing the application.