Hello FreePBX Community,
I am seeking advice on how to implement a specific call routing scenario using FreePBX. The objective is to execute a REST API (cURL, for example: https://example.com/api/assigned-by-number/{phoneNumber}) whenever there is an inbound call to a particular phone number. This API call should return an extension number to which the call should be routed.
For context, we have a CRM system where each customer is assigned a dedicated representative. We want to set up our FreePBX system so that when a customer calls our main phone number, the call is automatically redirected to their assigned agent’s extension.
How can we achive this?
Thank you