Skip to main content

Queue Timeout then voicemail

Posted by schat@schat.net on Sun, 04/26/2009

What do I type in Other queue options to get the queue to timeout after 2 minutes and goto a extension or goto a voicemail?
Also can I make it that if in queue and someone hits 0 it goes to voicemail?
Thanks for the help


Submitted by eeman on Sun, 04/26/2009 Permalink

sorta, but your going to have to code in user_extensions.include to do this.

pressing a single digit while holding in queue will send the caller to the context defined in queues.conf for that queue (which falls in the other queues options box).

-- one example --

queues.conf:

[customer-svc]

strategy=rrmemory

context=custsvc

user_extensions.conf:

[custsvc]

exten => _X,1,VoiceMail(1291,u)

Submitted by nocadmin on Wed, 04/29/2009 Permalink

For the two minute timeout, this is my macro for sending users to the queue (Thirdlane variables included). After the queue times out, the dialplan will send the user to the voicemail box specified as an argument.

This is from my user_scripts_source.include to include Thirdlane web portions as well:

[queue-schedule-voicemail]

use=inbound,feature

friendlyname=Go to Queue - Voicemail on timeout

description

Sends caller to a call queue. Failover to voicemail if no agents are available or timeout is reached

args=1,Queue name,queue:2,Timeout,text:3,Mailbox to leave message on timeout,mailbox:4,Options,text

body

exten => s,1,SET(__MONITOR_FILENAME=queue-${ARG1}-${STRFTIME(,,%F-%T)}-${CALLERID(num)}${TL_DASH}${tenant})

exten => s,n,Queue(${ARG1},${ARG4},,,${ARG2})

exten => s,n,Voicemail(u${ARG3})

I usually tie this to a feature code (for the variables) then route the IVR to the feature code.

-Darryl

Submitted by schat@schat.net on Sun, 05/03/2009 Permalink

Thanks for the info. I am a real nube and have not used asterisk by itself.

It looks like I have to edit the scripts but do i have to put something in the thirdlane gui to call this script?

Thanks for the help

Submitted by nocadmin on Mon, 05/04/2009 Permalink

Go ahead and create the script in PBX Settings -> Script Library.

Enter this in the PBX Commands box:

exten => s,1,SET(__MONITOR_FILENAME=queue-${ARG1}-${STRFTIME(,,%F-%T)}-${CALLERID(num)}${TL_DASH}${tenant})

exten => s,n,Queue(${ARG1},${ARG4},,,${ARG2})

exten => s,n,Voicemail(u${ARG3})

Then add in four arguments:

1,Queue name,queue

2,Timeout,text

3,Mailbox to leave message on timeout,mailbox

4,Options,text

I call this by creating a feature code, then dial the feature code from the IVR menu. Which also lets our receptionists forward calls to queues directly by the feature code.

Submitted by ryan.tuttle on Wed, 07/15/2009 Permalink

I've created a script that will go to a user extension as well, if the destination is an external number I just use the follow me option on the extension so the CID of the caller is preserved.

exten => s,1,Set(CALLERID(name)=${ARG5}${CALLERID(name)})

exten => s,n,Answer

exten => s,n,Set(__MONITOR_FILENAME=queue-${ARG1}-${STRFTIME(,,%F-%T)}-${CALLERID(num)}${TL_DASH}${tenant})

exten => s,n,Queue(${ARG1},${ARG4},,,${ARG2})

exten => s,n,Goto(local-extensions${TL_DASH}${tenant},${ARG3},1)

Arguments

1, Queue name, queue

2, Timeout, text

3, Extension to transfer to, user extension

4, Options, text