Assigning calls to the same extension at the same time

Does anyone have any good suggestions? Thank you

[Oct  8 12:10:31] VERBOSE[1590][C-0001625a] app_dial.c:     -- Called SIP/1001
[Oct  8 12:10:31] VERBOSE[1591][C-00016252] app_dial.c:     -- Called SIP/1001
[Oct  8 12:10:31] VERBOSE[31482][C-0001625a] app_queue.c:     -- Local/8095@from-queue-0000a93a;1 is ringing
[Oct  8 12:10:31] VERBOSE[30503][C-00016252] app_queue.c:     -- Local/8095@from-queue-0000a93b;1 is ringing
[Oct  8 12:10:31] VERBOSE[1590][C-0001625a] app_dial.c:     -- SIP/1001-00029b47 is ringing
[Oct  8 12:10:31] VERBOSE[31482][C-0001625a] app_queue.c:     -- Local/8095@from-queue-0000a93a;1 is ringing
[Oct  8 12:10:31] VERBOSE[22142][C-00016220] file.c:     -- <SIP/to183-00029ad5> Playing 'custom/6pingjia.slin' (language 'cn')
[Oct  8 12:10:31] VERBOSE[1591][C-00016252] app_dial.c:     -- SIP/1001-00029b48 is ringing
[Oct  8 12:10:31] VERBOSE[30503][C-00016252] app_queue.c:     -- Local/8095@from-queue-0000a93b;1 is ringing
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] app_dial.c:     -- SIP/1001-00029b47 answered Local/8095@from-queue-0000a93a;2
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:1] GotoIf("SIP/1001-00029b47", "0?skipblkvm") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:2] Set("SIP/1001-00029b47", "__MACRO_RESULT=") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:3] NoOp("SIP/1001-00029b47", "Deleting: BLKVM/93/SIP/to183-00029b35 ") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:4] Set("SIP/1001-00029b47", "__BLKVM_OVERRIDE=") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:5] ExecIf("SIP/1001-00029b47", "0?goto(exitmacro)") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:6] GotoIf("SIP/1001-00029b47", "0?exitmacro") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:7] GotoIf("SIP/1001-00029b47", "1?step2:step1") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Goto (macro-auto-blkvm,s,9)
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:9] GotoIf("SIP/1001-00029b47", "0?exitmacro") in new stack
[Oct  8 12:10:32] VERBOSE[1590][C-0001625a] pbx.c:     -- Executing [s@macro-auto-blkvm:10] MacroExit("SIP/1001-00029b47", "") in new stack
[Oct  8 12:10:32] VERBOSE[31482][C-0001625a] app_queue.c:     -- Local/8095@from-queue-0000a93a;1 answered SIP/to183-00029b35
[Oct  8 12:10:32] VERBOSE[31482][C-0001625a] res_musiconhold.c:     -- Stopped music on hold on SIP/to183-00029b35
[Oct  8 12:10:33] VERBOSE[31421][C-00016259] res_musiconhold.c:     -- Stopped music on hold on SIP/to183-00029b34
[Oct  8 12:10:33] VERBOSE[31421][C-00016259] file.c:     -- <SIP/to183-00029b34> Playing 'queue-youarenext.ulaw' (language 'cn')
[Oct  8 12:10:33] VERBOSE[1590][C-0001625a] res_musiconhold.c:     -- Started music on hold, class 'Angel', on Local/8095@from-queue-0000a93a;2
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] app_dial.c:     -- SIP/1001-00029b48 answered Local/8095@from-queue-0000a93b;2
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:1] GotoIf("SIP/1001-00029b48", "0?skipblkvm") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:2] Set("SIP/1001-00029b48", "__MACRO_RESULT=") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:3] NoOp("SIP/1001-00029b48", "Deleting: BLKVM/91/SIP/to185-00029b25 ") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:4] Set("SIP/1001-00029b48", "__BLKVM_OVERRIDE=") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:5] ExecIf("SIP/1001-00029b48", "0?goto(exitmacro)") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:6] GotoIf("SIP/1001-00029b48", "0?exitmacro") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:7] GotoIf("SIP/1001-00029b48", "1?step2:step1") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Goto (macro-auto-blkvm,s,9)
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:9] GotoIf("SIP/1001-00029b48", "0?exitmacro") in new stack
[Oct  8 12:10:33] VERBOSE[1591][C-00016252] pbx.c:     -- Executing [s@macro-auto-blkvm:10] MacroExit("SIP/1001-00029b48", "") in new stack
[Oct  8 12:10:33] VERBOSE[30503][C-00016252] app_queue.c:     -- Local/8095@from-queue-0000a93b;1 answered SIP/to185-00029b25
[Oct  8 12:10:33] VERBOSE[30503][C-00016252] res_musiconhold.c:     -- Stopped music on hold on SIP/to185-00029b25`Preformatted text`

You’re going to need to be more specific about what problem you are encountering or what you are wanting to do.

Also, as macro-auto-blkvm is part of FreePBX, are you sure this is really a question about Asterisk, rather than the FreePBX dialplan?

Thank you for your reply,This is my queue configuration file,
The problem I encountered is that there is a small probability that the agent will make two calls at the same time. According to the full log, assigns two different incoming calls to the agent at the same time.


[97]
afteragentno=custom/nub
agentno=0
announce-frequency=60
announce-holdtime=no
announce-position=yes
autofill=yes
beforeagentno=custom/hi
calleemusic=9
eventmemberstatus=no
eventwhencalled=no
joinempty=yes
leavewhenempty=no
maxlen=0
music=Angel
outbound_routes_id=0
periodic-announce-frequency=0
queue-callswaiting=queue-callswaiting
queue-thankyou=queue-thankyou
queue-thereare=queue-thereare
queue-youarenext=queue-youarenext
reportholdtime=no
retry=5
ringinuse=no
servicelevel=60
strategy=leastrecent
timeout=10
weight=0
wrapuptime=3

type or paste code here

Thank you for your reply@david551
I will check FreePBX dialplan