My customer has 11 offices distributed over 11 states, for each of those states this customer uses Skype for business Client (endpoint) to make/receive calls.
They have a main toll free number which their clients call them on.
I would like to route the caller based on their state they are calling from to the office number.
I know this can be done via FreePBX because I have already done a test for 3 numbers however in order to go through the steps of uploading the database of NPA, States and creating routes based on these numbers (state codes) I would like to know the step by step procedure to do so.
I have asked in the FreePBX forum and they have given me the how to but it's not clear to me how to do so because I am fairly new to the batches and scripts on FreePBX bash. I would appreciate any help .
I am writing down call follow and how things are supposed to work.
My Customer Toll free Number = 888-XXX-XXX
Every one of their offices has a main number = 877-XXX-XX1/2/3-12
Assuming I called from Newyork with CID 203-XXX-XXX to the Main Toll Free 888-XXX-XXX the call in this case should be routed to NewYork's office number.
I already built the CSV file which has all codes/states abbreviations but need to know how to build routes based on this.