07-02-2014 02:17 PM - edited 03-14-2019 01:35 PM
Hi guys,
I want to create a script where it can release the incoming calls from specific CLID but I want to use an efficient way to implement it so I'm open to suggestions since I'm very new to ICM scripting.
Thanks in advance!
Kind regards,
Solved! Go to Solution.
07-02-2014 10:38 PM
You can do this in 2 ways.
1. you can use is node CLID in ICM script and match certain CLID and decide case.(if clid matches then case will be followed)
2. you can use if node and put the formula and decide what to do with call.(in if node if condition matches then success path will be followed )
i have attached screenshot of both.
regards
chintan
~please rate if helpful
07-02-2014 10:38 PM
You can do this in 2 ways.
1. you can use is node CLID in ICM script and match certain CLID and decide case.(if clid matches then case will be followed)
2. you can use if node and put the formula and decide what to do with call.(in if node if condition matches then success path will be followed )
i have attached screenshot of both.
regards
chintan
~please rate if helpful
07-03-2014 05:42 AM
If you have many CLIDs that you want to block, you can define them in an external database and do a DB lookup on that.
-Jameson
08-18-2014 06:49 AM
08-18-2014 07:22 AM
Hi,
can you please double check the format of the ANI sent by the CUCM?
You might want to implement a more graceful approach, for instance:
right(Call.CallingLineID,9)==735077132
would match
735077132, 001735077132, +1735077132, or anything ending with the number in the formula.
G.
08-18-2014 07:56 AM
Hi Gergely,
The format of calling line id is correct, I check in the RCD and TCD tables and the ANI matchs but somehow it is not being matched in the If node. Also there is no translation for the calling number in the VG.
Regards,
08-18-2014 08:06 AM
Hi,
on second thought, can you try using quotation marks, like this:
right(Call.CallingLineID,9)="735077132"
?
G.
08-19-2014 08:08 AM
I used the quotation and removed space in the string, and it works!
Thanks :)
08-18-2014 01:58 PM
08-19-2014 08:07 AM
Hi David,
There was no space in the DNIS but I found that some spaces and missing quotation in the string were causing the issue not to match, for example:
Not working:
(Call.CallingLineID == 8765426134) || (Call.CallingLineID == 8763172384) || (Call.CallingLineID == 8767714324)
Working:
(Call.CallingLineID="8765426134") || (Call.CallingLineID="8763172384") || (Call.CallingLineID="8767714324")
Regards,
08-18-2014 07:38 AM
can you check ther format of calling line id? the digits might be coming differently. check router log viewer and look for ANI. you will get some idea there.
also do you have any translation pattern on VG or CUCM to translate calling number,
regards
Chintan
08-18-2014 07:54 AM
The format of calling line id is correct, I check in the RCD and TCD tables and they match but somehow it is not being matched in the If node. Also there is no translation for the calling number.
08-18-2014 08:10 AM
Is it working with CLID node?
also Can you run call tracer in Script, set the parameters and set the ANI as one of those in IF node and check whats happening there.
Regards
Chintan
08-19-2014 08:09 AM
The call tracer was useful!
Thanks
08-19-2014 08:10 AM
What was the issue then?
Regards
Chintan
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