Summary:ASTERISK-00245: WaitMusicOnHold does not timeout ????
Reporter:carlos (carlos)Labels:
Date Opened:2003-09-11 08:54:23Date Closed:2011-06-07 14:05:07
Versions:Frequency of
Description:When a call is placed in a queue and then WaitMusicOnHold should timeout after 120 second but it simply does not. the Config is below:

; support Menu/Queue
exten => 2,1,Ringing
exten => 2,2,Wait,5
exten => 2,3,BackGround(play-tyfcSu)
exten => 2,4,BackGround(play-thuforwaiting)
exten => 2,5,Wait,2
exten => 2,6,Answer
exten => 2,7,Queue(techsupport|Tt||play-thuforwaiting)
exten => 2,8,WaitMusicOnHold(120)
exten => 2,9,Voicemail(u10)
exten => 2,10,Playback(vm-goodbye)
exten => 2,11,Hangup

As you can see from above priority 8 starts the music on hold an it should time out in 120 seconds and take them to voicemail in priority 9. It is not happening ????

As well as the announce feature in the Queue() function does not work.

Any ideas ????
Comments:By: Brian West (bkw918) 2003-09-11 14:11:04

Nope this isn't a bug.  app_queue will let them in the queue if you have members in queues.conf... Now if you use AddQueueMemeber and RemoveQueueMemeber it won't let them in the queue if the queue doesn't have members.  But if you define groups or agents in the queues.conf then they can sit on hold forever... The best way to keep that from happening is to not include the context with the queues during non-business hours.  Or use the Dynamic stuff like I did.

; this works best with sip devices.
exten => 800,1,AddQueueMember(techsupport)
exten => 800,2,Playback(agent-loginok)
exten => 800,3,Hangup

exten => 801,1,RemoveQueueMember(techsupport)
exten => 801,2,Playback(agent-loggedoff)
exten => 801,3,Hangup

; sales
exten => 900,1,Answer
exten => 900,2,Queue(techsupport|TtH)
exten => 900,3,WaitMusicOnHold(20)
exten => 900,4,Voicemail2(u900)
exten => 900,5,Playback(vm-goodbye)
exten => 900,6,Hangup