I am trying to find a solution for the following - a call enters my main SCXML routing script, and depending on a number of criteria (ANI, DNIS, caller segment) I want to set a variable that specifies the URI of the SCXML file to execute, and invoke the SCXML file specified by that variable. Since a Subroutine block in Composer does accept a variable as the value of the
URI parameter, and the SCXML
<xi:include> does not accept a variable (other than session variable) as the value of the
href argument, there seems to be no straightforward way of doing this.
The two obvious work arounds are
- Use a Branching block that segments on the value of the variable and connect each exit of that Branching block to a Subroutine block that calls the appropriate SCXML.
- Create separate routing points for each SCXML file I want to execute, set the value of the variable equal to the appropriate routing point, and use the variable in a Force Route block to route the call to that routing point.
However, because of the large number of target SCXML files involved neither of these is my preferred solution.
Is there any other way to invoke an SCXML file with the URI specified by a variable?
#Routing(ACD/IVR)#Telephony------------------------------
Ferry Blaazer
Prime Contact BV
------------------------------