I am building a custom IVR using FreeSWITCH + mod_xml_curl + Node.js.
My dialplan is generated dynamically from an API and returned as XML.
If the destination does not answer
The call is transferred to
ai_agentai_agentshould:play greeting audio from API
record caller voice
send audio to backend
play AI response
loop the conversation
The call reaches my greeting API and plays the greeting audio, but after that the call disconnects automatically.
matchRules += ` `;