Queue ringing extension that's not listed as static or dynamic agent

Intermittently, my general queue (x5000, for the operator) well send a call to an extension (205) that I don’t have listed as a static or dynamic agent. Looking in configuration and log files I just can’t figure out why this is happening.

I’m new to FreePBX, so my apologies if I’m not too familiar with all of the terminology or methods of investigation.

Any help or guidance is very much appreciated. I’ve googled and searched the forum here and wasn’t able to find this issue. Below is the relevant information I have but I can provide more if needed - I just need to know where to look.

Current PBX Version: 17.0.19.27
Current System Version: 12.7.8-2408-1.sng12

From the log files:

7844	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:49] Set("PJSIP/etgw-000007fe", "QMAXWAIT=300") in new stack	
7845	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:50] Set("PJSIP/etgw-000007fe", "VQ_MAXWAIT=") in new stack	
7846	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:51] Set("PJSIP/etgw-000007fe", "QUEUENUM=5000") in new stack	
7847	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:52] Set("PJSIP/etgw-000007fe", "QUEUEJOINTIME=1749047845") in new stack	
7848	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:53] Set("PJSIP/etgw-000007fe", "CHANNEL(hangup_handler_push)=queueCall-hangup,s,1(5000,1749047785.6067,PJSIP/etgw-000007fe)") in new stack	
7849	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] pbx.c: Executing [5000@ext-queues:54] Queue("PJSIP/etgw-000007fe", "5000,tC,,,300,,,,,") in new stack	
7850	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] res_musiconhold.c: Started music on hold, class 'default', on channel 'PJSIP/etgw-000007fe'	
7851	[2025-06-04 09:37:25] VERBOSE[3654417][C-00000438] app_queue.c: Called Local/205@from-queue/n	
7852	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:1] Set("Local/205@from-queue-00000315;2", "QAGENT=205") in new stack	
7853	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:2] Set("Local/205@from-queue-00000315;2", "__FROMQ=true") in new stack	
7854	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:3] UserEvent("Local/205@from-queue-00000315;2", "QueueMemberCallDial,QAGENT:205,UNIQ:1749047845.6069,Queue:5000,LinkedID:") in new stack	
7855	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:4] Set("Local/205@from-queue-00000315;2", "CHANNEL(hangup_handler_push)=queueMemberCall-hangup,s,1(205,1749047845.6069,5000)") in new stack	
7856	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:5] GotoIf("Local/205@from-queue-00000315;2", "0?hangup") in new stack	
7857	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-queue:6] GotoIf("Local/205@from-queue-00000315;2", "1?5000,1:hangup") in new stack	
7858	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx_builtins.c: Goto (from-queue,5000,1)	
7859	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [5000@from-queue:1] Goto("Local/205@from-queue-00000315;2", "from-internal,205,1") in new stack	
7860	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx_builtins.c: Goto (from-internal,205,1)	
7861	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-internal:1] Set("Local/205@from-queue-00000315;2", "__RINGTIMER=15") in new stack	
7862	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-internal:2] ExecIf("Local/205@from-queue-00000315;2", "0?Set(__CWIGNORE=)") in new stack	
7863	[2025-06-04 09:37:25] VERBOSE[3654608][C-00000438] pbx.c: Executing [205@from-internal:3] Gosub("Local/205@from-queue-00000315;2", "macro-exten-vm,s,1(205,205,0,0,0)") in new stack

From queues_additional.conf:

[5000]
announce-frequency=30
announce-holdtime=no
announce-position=yes
autofill=no
autopause=no
autopausebusy=no
autopausedelay=0
autopauseunavail=no
joinempty=yes
leavewhenempty=yes
maxlen=0
memberdelay=0
min-announce-frequency=15
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=queue-callswaiting
queue-thankyou=queue-thankyou
queue-thereare=queue-thereare
queue-youarenext=queue-youarenext
reportholdtime=no
retry=30
ringinuse=yes
servicelevel=60
strategy=rrordered
timeout=15
timeoutpriority=conf
timeoutrestart=no
weight=0
wrapuptime=15
context=
member=Local/208@from-queue/n,0,"Stephanie",hint:208@ext-local

The IVR options are:

0 - x5000 queue (static: 208; dynamic: 202 204)
1 - x5001 queue (static: 205; dynamic: 210)
2 - x5002 queue (static: 202 204; dynamic: 208 210)
3 - x5003 queue (static: 211 207 206 209)
4 - x5004 queue (static: 209; dynamic: 207 211)
5 - x5005 queue (static: 208; dynamic: 202 204 210)

I created a new “general” queue with the same settings 5000 has and I’m monitoring CDR to see if it happens again - which so far it hasn’t (knock on wood).

I see this as a work-around instead of a fix - and I prefer fixes (just for better understanding).

If anyone has any other insight or ideas, I’d be happy to know!

From the Asterisk CLI do:

queue show

or browse to Reports->Asterisk Info, Queues section. You will likely see that ext 205 is logged into the queue in question. Depending on queue config, extensions that are not listed as dynamic agents may be able to login to queues. It’s controlled with the “restrict dynamic agents” param, which oddly defaults to no

image

Thanks for the info! Both the CLI and the queues section for 5000 show 205 logged in (dynamic). The new 5010 does not show this information.

The strange part is for 5000 (the problem child) I’ve already set restrict dynamic agents to yes, and the queue agents are static 208, dynamic 202 and 204. I’ve even added her back to dynamic, saved, applied, removed, saved, and applied.

So I dug around asterisk’s CLI commands and found queue remove member.

After trying some variations with no returned message (success or otherwise), I sent the command queue remove member Local/205@from-queue/n from 5000, got a success message returned, then ran show queue again, and she’s finally removed!

Thank you so much for your help!

1 Like