Enabling Call Recording for a 3CX Programmable Extension

harmonvoice

Silver Partner
Joined
Feb 21, 2012
Messages
3
Reaction score
1
We are using a 3CX Programmable Extension because our OpenAI-based agent needs to communicate with a custom remote MCP server that we developed.

So far, the solution has been working extremely well. I’m particularly impressed with the flexibility the 3CX architecture provides. In many ways, it feels like CFD and traditional call scripting on steroids. There is definitely more complexity involved, but the capabilities and level of integration we have been able to achieve are impressive.

There is one issue I have not been able to resolve: enabling call recording for the Programmable Extension.

From what I can tell, 3CX treats a Programmable Extension more like a route point than a traditional extension. Unlike the built-in 3CX AI Agents, Programmable Extensions do not appear in the Web UI in a way that allows call recording to be enabled through the normal extension settings.

I have also been unable to find documentation or code examples showing how recording can be enabled programmatically for a Programmable Extension.

Could someone point me in the right direction?

Specifically:
  • Can call recording be enabled for a Programmable Extension?
  • If so, should recording be initiated or configured through the Programmable Extension code, the Call Control API, or another 3CX setting?
  • If recording is not supported directly, is there a recommended architectural workaround, such as routing the call through another recordable 3CX object before or after the Programmable Extension?
I’m happy to adjust the call-flow architecture if necessary.

For our use case, call recording is a critical requirement for customer adoption, particularly when deploying AI agents into production environments. Everything else about the Programmable Extension architecture has been very promising, so I’m hoping there is a supported way to incorporate recording into the call flow.

Any guidance or examples would be greatly appreciated.
 
  • Like
Reactions: UCMUserAZ
We built our own voice agent that registers to a user extension (so you can record the conversation). It is a conversational voice bot (OpenAI real-time API) that we have full control over including an auto-updating AI-based (local vector database) knowledgebase (nightly scans of our website, user manuals, YouTube channel, and auto-ingests uploaded documents) and MCP support.
 
Thank you for your response! That is an interesting approach. I will give it a try.
 
We built our own voice agent that registers to a user extension (so you can record the conversation). It is a conversational voice bot (OpenAI real-time API) that we have full control over including an auto-updating AI-based (local vector database) knowledgebase (nightly scans of our website, user manuals, YouTube channel, and auto-ingests uploaded documents) and MCP support.
have you been able to record an Ai call script?
 


We got this working. Thanks @VoIPTools for the help!:) Getting back to the level of functionality of 3CX's built-in AI took a lot of work, but the payoff is that we can now use MCP servers and record calls.

In case it helps someone else:

The problem: Our client wanted the AI to handle 16 concurrent calls before handing off to agents. All calls were being delivered to single extension being monitored by a 3CX route point, We couldn't reliably tie the SIP session's call-id to the call control API's participant-id, which can change. This worked at low volume but broke down in a call center. Because we used the call control API for transfer and hangup, the AI sometimes requested a transfer that hit the wrong participant.
The fix:
  • We bind each call's context (ANI, participant-id, call-id, etc.) on the first ring.
  • We handle transfers from the SIP side using REFER.
  • Before acting, we scan the contexts for duplicate or missing participants. This covers cases where the AI doesn't know the 3CX call has already dropped.