Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

ICM script question

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 ?          

2 ACCEPTED SOLUTIONS

Accepted Solutions

ICM script question

Hi,

actually, you can use the various object fields. For instance, CallType..CallsOfferedToday for the number of calls offered for that particular call type.

G.

ICM script question

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

6 REPLIES

ICM script question

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.

New Member

ICM script question

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 ?

ICM script question

Hi,

actually, you can use the various object fields. For instance, CallType..CallsOfferedToday for the number of calls offered for that particular call type.

G.

ICM script question

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

ICM script question

David, good point. I am using the random() function myself for evenly distributing the traffic between VRU trunk groups.

G.

New Member

ICM script question

Thanks for the useful input guys.

213
Views
9
Helpful
6
Replies
CreatePlease to create content