[Asterisk-Users] Tearing my hair out with Queues

Douglas Garstang dgarstang at oneeighty.com
Thu Mar 23 23:28:13 MST 2006


Here you go. I'm not sure this is much use. It's a bit hard to explain as I have one system calling another via IAX where the Queue() command is executed... Calls are VOIP->VOIP, on our network... This case below is where each agent (there's 6) is rung for 30sec, but the Queue aborts after 120s, not 300s!
 
extensions.conf(Caller):
[macro-DialIAX]
exten => s,1,Dial(IAX2/pbxuser@${ARG1}/${ARG2}@${ARG3})
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-ANSWER,1,Goto(s-OK,1)
exten => s-NOANSWER,1,Goto(s-ERROR,1)
exten => s-CONGESTION,1,Goto(s-ERROR,1)
exten => s-CHANUNAVAIL,1,Goto(s-ERROR,1)
exten => s-ERROR,1,Answer()
exten => s-ERROR,2,Wait,1
exten => s-ERROR,3,Set(i=1)
exten => s-ERROR,4,While($[${i} < 4])
exten => s-ERROR,5,Playback(cannot-complete-network-error)
exten => s-ERROR,6,Playback(message-number)
exten => s-ERROR,7,Playback(letters/o)
exten => s-ERROR,8,Playback(letters/e)
exten => s-ERROR,9,Playback(digits/9)
exten => s-ERROR,10,Playback(digits/0)
exten => s-ERROR,11,Playback(digits/0)
exten => s-ERROR,12,Set(i=$[${i} + 1])
exten => s-ERROR,13,EndWhile
exten => s-ERROR,14,Hangup()
exten => s-OK,1,MacroExit
...
exten => 2944000,1,Macro(DialIAX,acdserver1,q_main,oneeighty_acd)
exten => 2944000,2,NoOp(IM BACK)
 
extensions.conf(Callee):
exten => q_main,1,Queue(oneeighty_main||||300)
exten => q_main,2,NoOp(${QUEUESTATUS})
exten => q_main,3,NoOp(${DIALSTATUS})
exten => q_main,4,Hangup
 
queues.conf(Callee):
[oneeighty_main]
musiconhold = default
joinempty = strict
leavewhenempty = strict
strategy = rrmemory
timeout = 30
;retry = 0
member => Agent/80014055
member => Agent/80014057
member => Agent/80014052
member => Agent/80014051
member => Agent/80014033
member => Agent/80014050
 
 

	-----Original Message----- 
	From: CC Jay [mailto:jjcoolio at gmail.com] 
	Sent: Thu 3/23/2006 11:16 PM 
	To: Asterisk Users Mailing List - Non-Commercial Discussion 
	Cc: 
	Subject: Re: [Asterisk-Users] Tearing my hair out with Queues
	
	
	In that case, you should post part of extensions.conf which is related to Queues/agents, which makes it easier to troubleshoot your problem. Besides, you haven't mentioned how incoming calls get into your queue. PSTN or VoIP calls? 
	All providers set some limit on the time a call can be placed on their trunks without being answered. For PSTN, the time limit is 90 sec. Could that be the cause for your Queue timeout of 120 sec?
	



More information about the asterisk-users mailing list