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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Redirect a Call to Unity Voicemail if no agent is available


Hi ,

We use CUCM & Unity & UCCX 8.6.

I am going to  Scripting of UCCX  for our Call Center and need your Help.


I would like make a redirection the call to the Unity Voicemail if the agent in  a Queue (CSQ) is unavailable (Buys , not logged in or ..).


How can I do it best?


Thanks for your Support



Hi and thanks for your

Hi and thanks for your question.  I am reading it as two parts:

1. How to transfer or redirect calls from UCCX to CUC voicemail

To do this, you will need to make sure your CTI Ports (aka Call Control Group) has a CSS which can reach the Voicemail Pilot number.  Then, you will use the Call Redirect step in your script, with a destination of the VM Pilot number, while providing the mailbox or call handler extension as the Called Address Reset To (you can use a String variable or just type it in, in double quotes Ex. "4005")

This next part is not necessary for the transfer or redirect to work, but it does help keep reporting clean.  You will want to place a Set Contact Info step inside the Successful branch of the Call Redirect step to mark the Contact as handled.  After the Set Contact Info step, place and End step to end processing of the script.

Lastly, you'll want to engineer scenarios for failures: Busy, Invalid, and Unsuccessful.  Sometimes it's appropriate to just End the script, which will play the Application Default Script, which if set to the default, will simply say "I'm sorry, we're currently experiencing technical difficulties..."  Which you are this point.


2. How to check the status of Agents for a given CSQ from within a UCCX Script

For this, you will need to use the Get Reporting Statistics step and set it up to read the various statuses you want.  E.g., Resources Not Ready, or Logged In Resources, etc.

Then, once you have the metric in your integer variable, you would use and If step to test the condition of the value.  Eg., If (logged_in_agents == 0)  OR If (ready_agents >= 3) etc.  If would then be in the True or False branch that you'll place your above Call Redirect step to redirect the caller to voicemail.

Whether you place your Get Reporting Statistics before, inside of, or after the Queue Loop, is a design preference, and should really be discussed with the business.


I hope that helped.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Hi Anthony,Thanks for your

Hi Anthony,

Thanks for your precise and details explanation.

I have understood what I have to do if I script a workflow with Unity redirection.

But I have a question about CSS for CTI-Ports , is it enough if I choose a correct CSS in CUCM , Directory Number (CTI Port Number) , Directory Number Setting or Shall I change the CSS in “Call Forward and pickup Setting” in CUCM , Directory number configuration also?


Best Regards



CreatePlease login to create content