Place Multiple Calls with IPCC Script

Answered Question
Feb 16th, 2010
User Badges:

I am attempting to place multiple simultaneous calls with an IPCC script. The only method I can think of to do this is some sort of multithreading. Is there anyone who can think of another method to do this? Or who could possibly give me an example how I could implement multithreading to accomplish it in the expression editor? Thanks.

Correct Answer by Anthony Holloway about 7 years 1 month ago

You cannot, but you can run multiple simultaneous scripts at once.

Trigger Application Step, and set Synchronous = false, rinse and repeat as necessary    

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
david.macias Tue, 02/16/2010 - 09:05
User Badges:
  • Blue, 1500 points or more

How would you do multithreading?


Correct Answer
Anthony Holloway Mon, 03/08/2010 - 09:05
User Badges:
  • Purple, 4500 points or more

You cannot, but you can run multiple simultaneous scripts at once.

Trigger Application Step, and set Synchronous = false, rinse and repeat as necessary    

Bill Brown Tue, 02/16/2010 - 12:54
User Badges:

Use the Place Call command to call the trigger multiple times.  I use this to avoid the JTAPI 1000 lines of execution error.  I call customers and tell them to expect a fax, unless they refuse it, in the next 5 minutes.  When I've sent out like 50 faxes from the database I will use the place call to recall my script then I exit the current one.  You could simply call your trigger the number of lines you wish to tie up.  I'd screen the script at the beginning to say if I didn't come from this route point, don't call multiple or you could have the script ask you to input the number of lines you'd like to use.  You will have to set the trigger as not being handled right at the beginning of the script on a hang up event so that it doesn't exit.  If you are wanting to play a message to those called, remember to change the media channel.

n_duncanson Mon, 03/08/2010 - 06:01
User Badges:

How do you set up the trigger so as to not be handled?

Bill Brown Mon, 03/08/2010 - 06:59
User Badges:

On Exception (ContactInactiveException) Goto Start

Play Prompt (--Triggering Contact--),p[hangupnow.wav])

Delay 5 sec

Terminate (--Triggering Contact--)


Clear Exception (ContactInactiveException)

Set Contact Info (--Trigger Contact--)

          Language:     strLanguage


          Session:       strSession

Above should help out; the strLanguage and strSession are populated from a get contact info step.  I've not touched this script in awhile, but for some reason I set the session id to null.

As for how I hold the line open after the calling party is terminated.  I'm basically waiting for an error to happen, either by the user hanging up or by the 5 seconds expiring then saying that it has not been handled.

Another suggestion, I put a delay of 2 seconds after excepting a contact in the front of all my scripts to make sure the phone system has the call. So when I place a call; I give at least 5 secounds before releasing the line and terminating the prior script.  Hope I have been helpful.

n_duncanson Mon, 03/08/2010 - 11:35
User Badges:

Thanks for your help. I ended up using the Trigger Application step to accomplish what I needed, though I tried your method first and it worked as well. Thanks!

Bill Brown Mon, 03/08/2010 - 12:08
User Badges:

I learned something new today too.  We are still in the lab with 7.1 and in production with 4.3.  The older version did not have a trigger application step.  I'll have to play with this step in the lab and see the what benefits I can get out of it.

Anthony Holloway Mon, 03/08/2010 - 14:14
User Badges:
  • Purple, 4500 points or more

The triggered App gets it's own max steps.  So you retain that benefit.


This Discussion