Call Flow Script: Route Calls Based on Caller ID

IliasL_3CX

Staff member
Joined
Jun 2, 2014
Messages
147
Reaction score
118

Direct incoming calls automatically based on the caller’s number to specific destinations.​

This script allows you to direct incoming calls to specific destinations based on the caller’s phone number. It checks a list of numbers stored in a file, and routes matching calls accordingly. This is useful for prioritizing VIP cust...
Continue reading the Original Blog Post.
 
Would this work with a 30,000 line CSV or is there a maximum size or number of stored phonenumbers?
 
If you have a 30K lines CSV, consider using a database with a small web service and call that service in the call script instead of loading thousands of numbers in memory.

You can do HttpClient requests in the scripts.
 
I would look about the file size, the amount of memory taken during multiple calls and how long it takes to execute the whole query:

C#:
var watch1 = System.Diagnostics.Stopwatch.StartNew();
// ...  code to measure ...
watch1.Stop();
MyCall.Info("******** watch1 total duration in ms is " + watch1.ElapsedMilliseconds.ToString());

If something becomes too big and doesn't fit then solve it differently, see @ConceptsWeb above.
 
  • Like
Reactions: jed and accentlogic
Good suggestions and great help by @fxbastler and @ConceptsWeb However this amount of data should be in a database. A CSV file with 30K records is ridiculous sorry. Of course results will be poor and then 3CX will be blamed.
 
Very cool! thanks
 
Hi all,

How upload .csv file? gui only permit .wav

Thanks
 

Members Online Now

Forum statistics

Threads
111,834
Messages
589,287
Members
164,662
Latest member
DejanMDS