[Home]

Summary:ASTERISK-19196: Queue and local channels - Agent hunting order incorrect
Reporter:Tuan Le (tuanle55)Labels:
Date Opened:2012-01-12 11:43:02.000-0600Date Closed:
Priority:MajorRegression?
Status:Open/NewComponents:Applications/app_queue
Versions:1.8.8.1 13.18.4 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Redhat Enterprise 4 Dell ServerAttachments:( 0) extensions.txt
( 1) myDebugLog_issue_19196_3
( 2) queues-MISSDemo.conf
Description:2 Agents statically entered using local channel -- See configs

Queues.conf:
[Demo]
strategy=rrmemory
timeout=8
autofill=no
member => Local/1003@Demo/n
member => Local/1004@Demo/n

Extension dialing context
[Demo]
exten => _1004,1,Set(Group(...)
exten => _1004,n,Dial(SIP/GWLB_OUT/11234567890)

Asterisk 1.8.8.1

Sample of issue:

-- Executing [1004@Demo:3] Dial("Local/1004@Demo....)
-- Nobody picked up in 8000 ms
-- Executing [1004@Demo:3] Dial("Local/1004@Demo....)
-- Nobody picked up in 8000 ms
-- Executing [1003@Demo:3] Dial("Local/1003@Demo....)

When it is dialing the same agent the second time, Agent 1003 status shows Not In Use so its not because the agent is busy on another call. This is all in a controlled testing so there were no other random events confusing things.

The dial() statement executes a macro which basicallyl returns a Macro_Exit() or set MACRO_RESULT=BUSY if the call gets answered.

This scenario happens sporadically in our controlled test environment.  For maybe 20 test calls, it works flawlessly.  But then, the above happens for a short burst of calls and then everything goes back to working as expected.
Comments:By: Matt Jordan (mjordan) 2012-01-12 13:33:46.489-0600

We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information



By: Tuan Le (tuanle55) 2012-01-16 11:55:14.242-0600

See the first call the queue made where it contains this line:

[Jan 16 12:43:50] VERBOSE[2631] app_read.c:     -- User entered '5'

Follow by:
[Jan 16 12:43:50] DEBUG[2631] app_dial.c: Macro exited with status 0
[Jan 16 12:43:50] DEBUG[2631] channel.c: Hanging up channel 'SIP/ARS_GWLB_OUT-000000b2'
[Jan 16 12:43:50] DEBUG[2631] chan_sip.c: Hanging up zombie call. Be scared.
[Jan 16 12:43:50] DEBUG[2631] chan_sip.c: update_call_counter(16314571394) - decrement call limit counter on hangup

[Jan 16 12:43:50] DEBUG[27008] devicestate.c: Changing state for Local/1003@MISSDemo - state 1 (Not in use)

Call from queue tries the same Agent 1003 again

[Jan 16 12:43:52] VERBOSE[2632] pbx.c:     -- Executing [1003@MISSDemo:1] Dial("Local/1003@MISSDemo-99dc;2", "SIP/ARS_GWLB_OUT/16314571394,10,TtM(detect2)") in new stack


By: Tuan Le (tuanle55) 2012-01-16 11:57:28.956-0600

Extensions.conf and queues.conf

By: Tuan Le (tuanle55) 2012-01-16 12:18:18.062-0600

I want to note we tried "linear" hunting and received the same issue as well.

By: Tuan Le (tuanle55) 2012-02-07 08:22:35.732-0600

Any update?