Hello,
We want to route calls to different flows based off the DNIS that the caller dialed. We have a data table with our DNIS numbers and the call flow name that it corresponds to. We are going to route all calls for a particular "brand" to a common flow, then within that flow use a switch with a case expression to route them to the proper flow and/or queue based off the number they dialed. We would like to give the business the ability to change which queue the call goes to simply by updating the information in the data table. Here is a sample of our data table:
ColumnA ColumnB
7007007000 FlowA
8008008000 FlowB
9009009000 FlowC
We have a variable to store the DNIS that the caller dialed. We cannot simply say lookup that variable and if it's in this table go to FlowA, because all 3 numbers in this case would go to FlowA. What we want to do is match the DNIS the caller dialed against ColumnA in our data table and return the matching value in ColumnB and say basically "IF the caller dialed 8008008000 THEN we want to send it to Case2 (FlowB)". Similarly, IF the caller dialed 7007007000 THEN we want to send it to FlowA and so on.
Currently our case statement is hard coded with the number like this: Call.CalledAddressOriginal == "+18008008000". However, this lacks the flexibility because we would need to modify our call flow if the DNIS changes. We want to get to a point where all we have to do is modify the data table and not need to change the flow at all. I believe all I need to find is the right expression for a case statement that would say "if the caller dialed <number in column A> then we need to send to the flow to the case matching <value in column B>. Can someone help with the right expression for this use case?
#ArchitectureandDesign#Routing(ACD/IVR)#SystemAdministration------------------------------
Josh Steinkamp
CHRISTIAN BROADCASTING NETWORK
------------------------------