← Case studies

Upgrading a Custom Twilio IVR System

Published Sep 24, 2025

A property company needed to upgrade their Twilio IVR system that had begun to break down after years of neglect.

A smartly dressed developer coding at a table with a laptop and an IVR phone tree emanating from the phone on his desk. In the background a home is for sale..

The Challenge

A property company running a custom PHP-based CRM (Perfex) with a basic Twilio integration, needed to turn a fragile proof-of-concept IVR system into a production-ready communication system.

  • Had previously contracted another developer to build an IVR system for their sales pipeline.
  • This IVR system supported only one branch (sales) and required code edits for every change.
  • Sensitive credentials were hardcoded in the codebase, creating security risks despite version control.
  • The CRM hadn’t been updated in five years, leaving PHP, JavaScript, and Twilio components outdated.
  • Customers faced a poor experience: calls dropped, audio crackled, and every menu option triggered a separate new call.
  • The staging environment wasn’t being used properly, leaving management unable to test changes before deployment.

The system was outdated, insecure, and frustrating for staff and customers. There was a clear need for a better solution.

The Solution

I rebuilt and secured their Twilio integration and CRM, focusing on both technical stability and customer experience.

  • Step 1 – Secure the foundation: Removed credentials from code, implemented .env secrets management, and excluded sensitive configs from version control.
  • Step 2 – Restore and improve IVR: Rebuilt sequential dialling, added proper call routing to sales, auctions, listings, and customer service. Introduced robust Twilio logging for monitoring and troubleshooting.
  • Step 3 – Enhance customer experience: Implemented Twilio conferences with hold music and redesigned call flows so customers no longer had to default through the call centre.
  • Cleaned up the Twilio dashboard by rotating exposed keys, removing test numbers, and documenting configuration.
  • Reestablished staging and testing processes to ensure all changes were reviewed before production.

This transformed a brittle proof of concept into a secure, flexible, and professional-grade system.

The Impact

  • The client gained a communications system that was secure, reliable, and tailored to their business.
  • Customers enjoyed smoother calls, with no jitter or dropouts and a professional conference experience.
  • The IVR now supported multiple multiple branches — sales, auctions, listings, and customer service with dedicated fallback options.
  • Management could easily track incoming and outgoing calls.
  • Changes to the IVR could be made on the website instead of through editing code (more flexible/accessible)
  • Developers and management benefited from safe deployment practices, no embedded credentials, and a functional staging environment from which to test changes before they were deployed to production.

The result was a more trusted customer experience and a stronger technical foundation for the business.

Technical Details

  • The project combined CRM modernisation with Twilio re-architecture to create a more flexible and scalable IVR system that could easily be updated by staff on the frontend.
  • Migrated secrets to .env files and secured Twilio/database credentials.
  • Updated and patched PHP and JavaScript clients that hadn’t been maintained in five years.
  • Built multi-branch IVR flows using Twilio Studio and custom routing.
  • Introduced Twilio conferences with new database schema changes to support call states.
  • Implemented inbound and outbound call logging for better diagnostics.
  • Simplified Twilio dashboard by cleaning unused numbers, rotating keys, and documenting usage.
  • Enforced proper use of staging for safe development and testing.

This multi-phase project delivered both immediate customer improvements and long-term maintainability.