Transfer calls from one script to another (halfway through)

Unanswered Question
Dec 22nd, 2009
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jonathan Schulenberg Tue, 12/22/2009 - 11:07
User Badges:
  • Super Bronze, 10000 points or more
  • Cisco Designated VIP,

    2017 IP Telephony

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.

    1. Place a label step where you want the call to jump to.
    2. Immediately following your Accept step, add a Get Trigger Info step. Assign the Trigger Name attribute to a String variable.
      Immediately following your Accept step, add a Get Call Contact Info step. Assign the Called Number attribute to a String Variable.
    3. Use a Switch step to compare the trigger.
jonathanwalton Tue, 12/22/2009 - 11:13
User Badges:

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.

jonathanwalton Tue, 12/22/2009 - 11:09
User Badges:

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.

Edward Umansky Thu, 12/31/2009 - 08:26
User Badges:
  • Silver, 250 points or more

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.

Marwan ALshawi Thu, 12/31/2009 - 23:24
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Abdulbaseer Mohammed Sun, 01/03/2010 - 21:26
User Badges:
  • Silver, 250 points or more


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,



This Discussion