12-22-2009 10:50 AM - edited 03-14-2019 05:01 AM
I have a script that is running and working fine. It a simple menu script. I was wondering if there is a way to have calls to a different number jump in halfway through the main script.
For instance if Script1 has 3 different menu levels, and the trigger for script1 is 1000, I would like a call placed to 1999 start halfway down Script1, and then continue.
Does this need a second script? I would assume so, but how can I place a "goto" in Script2 that points to a label that's halfway through Script1?
I am running version 3.5(3), but will be migrating to version 7 soon. I would like advice on version 3.5(3).
Thanks in advance for any suggestions.
12-22-2009 11:07 AM
I'm not sure these steps exist in 3.5; however, here's the way you would do it in current versions. There's no need for an additional script if all you want to happen is begin at different spots.
12-22-2009 11:13 AM
HI Jonathan,
Thanks for the reply. I'm actually running this Script on version 7.0(1). We're trying to move off the old server, and I was confused. I'll try your suggestion. It's good to know there are multiple ways of doing this.
12-22-2009 11:09 AM
Using a "Consult Transfer", I was able to transfer the call to Script1, and punch in the options to get where I needed to go. It's almost seamless, and is good enough, but I'm still wondering if there is a cleaner way of doing this.
12-31-2009 08:26 AM
Do not create a second script, do what Jonathan S. said to do. Modify Script1 with a label at the point you want to jump to. After the script begins, collect call info and test whether the number dialed is the old number or the new one. If it is the new one, use a goto step to jump to the label you configured. Point the new number to this script.
12-31-2009 11:24 PM
actually what you did is a valid solution
and any other solution will be valid as well
as long as all the ways meeting the requirements
but you need to consider there is a way recommended over others
the method suggested by Jonathan s. is good way interm of memory utilization in your UCCX server because the more scripts you have the more load you will put on your sever's memory
again scripting is programing and each approach can be done in differnt ways but always look for the better way
hope this will help
if helpful Rate
01-03-2010 09:26 PM
Jonathan,
Please research or test futher the consult option, I am sure its not the cleanest of all. I would highly recommend using switch and trigger assignment this is probably a better way. It will also help you minimize number of steps in your script if you need to modify other things in future.
Good luck,
Baseer.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide