Conditional integration based on number being called

Status
Not open for further replies.

atommo

Platinum Partner
Joined
Jul 9, 2024
Messages
14
Reaction score
10
Hi, not necessarily a technical question but more checking if this is fundamentally possible to start with.

Imagine a customer with a 3CX server. They have multiple CRMs for different sites, and want to integrate with all of them.

I am wondering if it would be possible to write a script which will check the number being called, and run a certain part of the script relevant for that site based on the number (each site will have a unique number).

For example, here's some pseudocode:

if inboundNumber == 123 {
run API for CRM 1
}

else if inboundNumber == 456{
run API for CRM 2
}

else if inboundNumber == 789{
run API for CRM 3
}


Is this possible?
 
We did this for one of our integrations.

Could be adapted to do different CRMs. However, you will screw up the call/chat journaling. It will only work for inbound lookups, not even outbound. Keep that in mind.

And it requires manual setup of everything.
 
I agree with @ConceptsWeb and I did not even consider the impact on how chat messages are handled. What this does mean is that you are looking at a custom integration. You will not be able to use one of the existing CRM integrations or even the general CRM template. This would be a 100% custom integration built from scratch. If @ConceptsWeb has some existing code that could be leveraged to reduce the amount of work that needs to be done, that is a bonus, but this would be an entirely custom solution. So, to answer your question, "yes" it is possible to do if you have the necessary skills.
 
Status
Not open for further replies.