Branching out to another script

Answered Question
Nov 16th, 2007
User Badges:

How do you call a script from a CRS script? I am trying to give the caller option to "branch out" to another prompt (script) in case they made a mistake calling this prompt. Please advise, thanks.

Correct Answer by Chris Deren about 9 years 6 months ago

Use the "subflow" step.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Correct Answer
Chris Deren Sat, 11/17/2007 - 08:38
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,
  • Cisco Designated VIP,

    2017 IP Telephony, Contact Center, Unified Communications

Use the "subflow" step.


Ruud van Strijp Mon, 11/19/2007 - 02:10
User Badges:

And don't forget to map variables. By doing this you say that variable X in the subflow script, will be the value of variable Y in your main script. And it can also work the other way around.

For example, we have added a variable to our script that defines the opening and closing time of the CSQ. Since we have bad experiences with the Time-variable, we use a string variable "8:00" as opening time. We call a subflow to have these variables split to 8 hours 00 minutes. So we've mapped the "8:00" string variable to a String var in the subflow script. Then the subflow script splits the String, calculates each hour and minute seperately and then makes the boolean 'isOpened' true or false. This boolean is then mapped to a boolean variable in the main script.


This Discussion