Call Script - Routing to extension/queue depending on the CallerID

nicolasGa

Titanium Partner
Basic Certified
Joined
Dec 29, 2023
Messages
22
Reaction score
4
Hi,

I want to route a call to an extension or a queue based on a CSV file. (for example :if 06 XX XX XX XX calls, directly route to extension 101)
I know that it is doable on the CFD, but I don't have exeperience/knowledge.
I'm doing fine on Call Script, so I thought I would do a script for this.
My question is : I want to get the Caller number to then search in the CSV.
I found the proprety MyCall.Caller.CallerID.
I'm not sure if its the best way to get that info or if there is a better way to do it.

Thx,
 
You should be able to get the outside caller's phone number in the system variable session.ani.

But if you don't want to hassle with creating a script for this, and maintaining a CSV file, you may want to take a look at our 3CX Call Router tool. Our tool provides a very simple web-based interface for managing these routes. That means the end-users can manage this list without needing access to the 3CX console, or needing to edit a file on the 3CX server.
 
You know there are CallerID rules in 3CX, right?
 
  • Like
Reactions: VoIPTools
Shoot, I was so focused on answering the specific question that I neglected to mention that. I suppose the benefits of using the CSV file rather than the Caller ID rules is maybe ease of making all the changes at the same time, but I think to your point, it really isn't easier. The benefit of our tool would be no access to the console or the 3CX server would be needed. End-users can manage the routes themselves.
 
You know there are CallerID rules in 3CX, right?
oh sorry I just see your response from another thread to that same question.
But, if It seems I cant import my csv in that page.
Its, i think, more convenient to have an automated script in order to do that other than me configuring CID rules one by one
 
  • Like
Reactions: Evolute IT

Forum statistics

Threads
111,973
Messages
590,071
Members
164,892
Latest member
Phone1stStop