02-12-2014 05:56 AM - edited 03-14-2019 01:05 PM
In a ICM script, if one want to say route every 3rd call or for that matter any particular call differently based on the number, then what is the variable I need to check ?
Solved! Go to Solution.
02-12-2014 07:35 AM
Hi,
actually, you can use the various object fields. For instance, CallType.
G.
02-12-2014 12:43 PM
You don't need to create a variable just use the build in random() and and see if it's <= .3, if so send the call out. It's not exact science, but it will be pretty close. You can track the 100th call using a CT as Gergely mentioned.
david
02-12-2014 06:24 AM
Hi,
I would probably create a global variable, then in the script, increase its value. Then using an If node, I would apply the mod function. For instance, mod(globalvar, 3). If the remainder is 0, it means it's the 3rd call and I will route it appropriately.
G.
02-12-2014 07:16 AM
Thanks. Also I will probably reset it when the call count reaches 100, so that it never reaches a large value. So there is no inbuilt ICM variable which captures the call count ?
02-12-2014 07:35 AM
Hi,
actually, you can use the various object fields. For instance, CallType.
G.
02-12-2014 12:43 PM
You don't need to create a variable just use the build in random() and and see if it's <= .3, if so send the call out. It's not exact science, but it will be pretty close. You can track the 100th call using a CT as Gergely mentioned.
david
02-13-2014 01:45 AM
David, good point. I am using the random() function myself for evenly distributing the traffic between VRU trunk groups.
G.
02-14-2014 11:36 AM
Thanks for the useful input guys.
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