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

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.

Bronze

Fifteen minutes in queue, go to voicemail.

Hi,

I'm new to scripting and did not write this one I'm attaching.  The customer wants the calls that are in the queue for fifteen minutes to go to voicemail.  If I hit "0" while I'm in the queue I do go to voicemail so the UCCX server can hit the mailbox.  Any ideas on why this script will not shoot calls to VM after fifteen minutes?

Thanks,

Mike

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Fifteen minutes in queue, go to voicemail.

i think you could get by just fine with the below pseudo code:

queue

  :queue loop

  cwd = get reporting (current wait duration)

  if (cwd >= cwd_limit)

    true

      goto transfer to voicemail

    false

  play prompt (all reps busy, thank you for holding)

  place call hold

  delay 30

  place call unhold

  goto queue loop

the reporting step has a good help document if you open the step properties and click the help button.

good luck, and let me know how it works out.

Anthony Holloway

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

Re: Fifteen minutes in queue, go to voicemail.

I know this is not a rule per se, but post a screen shot of the section in your script you suspect is having an issue instead of the whole script.  It's a pain to download the zip, then extract, then open my editor, which may not even be the correct version for the script you have.  It's just messy.  I can quickly preview your screen shot right in browser, and probably answer your question without needing to load the script in an editor.

This is more of a rant for the support community as a whole, and not directed towards you.  so I apologize that this was stated in your post for help.

But, since I am here to help you, could you please post a screen shot of your queue loop?

Anthony Holloway

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

Re: Fifteen minutes in queue, go to voicemail.

Thanks Anthony,

The screen shot is attached.  Where I have it highlighted it keeps bouncing between there and Call UnHold right above it.

Thanks,

Mike

Re: Fifteen minutes in queue, go to voicemail.

In the screen shot I do not see a check for current wait duration, which is the metric you want to query if you need to dequeue after 15 minutes of queue time.

I do however see the expected wait time metric being compared to 900 seconds (or 15 minutes).

Perhaps it's just a missunderstanding of what the script is doing?

Anthony Holloway

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

Re: Fifteen minutes in queue, go to voicemail.

Thanks Anthony,

From what I understand and from calling it several times working on... the script answers the call and plays a brief recording before putting the call into queue.  If an agent is available it routes the call correctly.  If none are available it puts them on hold and every ten seconds it plays another recording about being on hold and you can press "0" to leave a voicemail.  If they stay in the queue for fifteen minutes it's supposed to send them to voicemail but it does not.  I guess I need the current wait duration?

Thanks,

Mike

Re: Fifteen minutes in queue, go to voicemail.

correct, unless it's further down in your screenshot.  but again, I see the EWT being compared to 15 minutes, so I'm thinking it's just a misunderstanding of what you have configured.  certainly changing it to current wait duration is possible.

Anthony Holloway

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

Re: Fifteen minutes in queue, go to voicemail.

Thanks Anthony,

Can you point me to an example of how to configure the current wait duration in the script?  Is there one in the script repository?

Thanks,

Mike

Re: Fifteen minutes in queue, go to voicemail.

i think you could get by just fine with the below pseudo code:

queue

  :queue loop

  cwd = get reporting (current wait duration)

  if (cwd >= cwd_limit)

    true

      goto transfer to voicemail

    false

  play prompt (all reps busy, thank you for holding)

  place call hold

  delay 30

  place call unhold

  goto queue loop

the reporting step has a good help document if you open the step properties and click the help button.

good luck, and let me know how it works out.

Anthony Holloway

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

Re: Fifteen minutes in queue, go to voicemail.

Anthony,

That did it.  Thanks for all your help.

Mike

New Member

Re: Fifteen minutes in queue, go to voicemail.

Hi Guys,

Can you answer a question of mine please? I  also want to enable forward the call to voicemail when pressing 9. I  created a menu and then create a connection called VM which I assigned  digit 9 for it. I believe when user pressed 9, it will activate call  redirect but that's not the case. I set the maximum retries to 0 so it  won't ask me " are you there" and I put the timeout to be 15 and it did  wait 20 seconds for me to input something. It's just when I click on 9,  it doesn't forward calls.

One thing I notice from Mike's script, call redirect is targeting to "strDataSecurityVM" but mine is to "580" which is the extension that our general mailbox has. Could this be the problem?

I also don't understand why is there a "Set Contact Info" before the dequeue, Is that required for my script to work?

Any help is appreciated. Attached is my script.

Andy

Bronze

Re: Fifteen minutes in queue, go to voicemail.

Andy,

I'm new to this so I'm sure Anthony could help more but can you post a screen shot of that payne in the bottom left of the script editor while you have the script open?

Mike

New Member

Re: Fifteen minutes in queue, go to voicemail.

Thank you Mike for look into this for me.

Attached is the screenshot that includes the variables.

Bronze

Re: Fifteen minutes in queue, go to voicemail.

Unless I'm not seeing all of your screen shot, I have a string called strDataSecurityVM with "1001" as the parameter (where you have "580").  The script then calls that string in the destination for the trigger contact for VM.

Maybe thats the problem?

Mike

New Member

Re: Fifteen minutes in queue, go to voicemail.

I actually made a different script and declared a variable VMex and call the variable instead of the just using the extension number ( see attached) but it's still not working.

Do you know how can I test if the menu really detects that I pressed a 9 ?

Regards,

Bronze

Re: Fifteen minutes in queue, go to voicemail.

The only ways I know to see are doing a reactive debug on the script and looking at the MIRV logs.  If I debug the script and then click start,

when I press "0" to go to voicemail it goes down to the dequeuing section below and an OID or IOD message pops up.  I can also see it redirecting the call to the VM number in the logs.

Hope that helps.

Mike

New Member

Re: Fifteen minutes in queue, go to voicemail.

Hi Mike,

As I looked into the script again, I found a problem. It's the dequeue step. I used CSQ instead of "CSQ" As I correct this, it's reading the 9 and does call rediret but then I found a weird behavier.

If I don't press 9 before it finish playing the first welcome prompt ( the one before it enters the queue). The call will stay in the loop forever. That doesn't make much sense as I think it should wait until it reaches the menu step then it look for my input. On top of that, if there's not input, it should enter the loop again and wait for my input again when it reaches the menu step.

But I am making big progress.

Thank you so much for your help Mike.

Regards,

Andy

Re: Fifteen minutes in queue, go to voicemail.

Hi Andy,

What happen when you press 9? Some prompt is being played or you hear nothing or what?

Gabriel.

New Member

Re: Fifteen minutes in queue, go to voicemail.

Hi Gabriel,

When I press 9, it does get directed now. I messed up on the dequeue step, I used CSQ instead of "CSQ"

Only thing is it reads my input before it enters the menu step and if I don't press 9 before the first welcome prompt ends, call will never be able to reach VM by pressing 9.

I am very confused........................

Regards,

1076
Views
0
Helpful
17
Replies