[asterisk-users] check if devices reachable in queue

Matt Hamilton mistral9999 at hotmail.com
Mon Nov 21 21:16:42 CST 2011




>Have you tried, instead of pre-processing the caller before calling
    Queue(), checking the ${QUEUESTATUS} variable. 

Even when the phones are UNREACHABLE, QUEUE is still trying until it times out -   ${QUEUESTATUS} = TIMEOUT

I get the following for all the members of the queue, in a loop, until it times out.

Executing [1001 at handle-queue:3] Dial("Local/1001 at handle-queue-6d01;2", "SIP/1001") in new stack
[Nov 21 18:57:42] WARNING[4780]: app_dial.c:2196 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Auto fallthrough, channel 'Local/1001 at handle-queue-6d01;2' status is 'CHANUNAVAIL'
    -- Local/1001 at handle-queue-6d01;1 is circuit-busy
    -- Nobody picked up in 0 ms
[Nov 21 18:57:42] WARNING[4780]: channel.c:4622 ast_prod: Prodding channel 'Local/1001 at handle-queue-6d01;2' failed



----queue.conf---------
joinempty=no                      
joinunavailable=no
leavewhenempty=yes 
timeout=0                    (for testing purposes, I set the timeout in the application to 10 secs)                    
timeoutpriority=app          
timeoutrestart=no
retry=0 



Is it possible to make the queue not wait for the timeout and return with JOINUNAVAIL after 1 round of testing the peers?

Thanks.
Matt

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111121/ba1c7de3/attachment-0001.htm>


More information about the asterisk-users mailing list