Hi,
You can use "Get Reporting Statistic" step to get the real time data of ICD queue status.
1. Step : Get Reporting Statistic
Set the properties of this step as follows...
Report Object : CSQ IP ICD
Field Name : Contacts Waiting
Row Identifier : String variable that holds the valuie of CSQ(Assume CSQ)
Statistic Variable : Interger variable that stores the resultant value of number of contacts waiting(Assume X).
2. Assume Y is the integer value that stores the threshold value.
3. Flow should be as follows
Select Resource(CSQ)
---->Selected
---->Queued
-------> Get Reporting Statistic
-------> If (X>Y)
----------->True
--------------->Call Redirect(Voicemail DN)
------------------->Sucessful
------------------------->Set Contact Info(Handled)
----------->False
--------------->Queue Steps...
For more information refer the Editor Step Reference Guide
http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/step.pdf - Pg.No:1-14.
Regards
Yogi