How to add an outgoing callback to queue

There is a configured server, mikopbx 2021.1.54 on Asterisk 16.13.0
Callback is configured. If click the button in the IVR then launch the dialplan application

1,Playback(call-forwarding)
n,Set(TMPFILE=/storage/usbdisk1/mikopbx/tmp/${UNIQUEID}.call)
n,Set(CALLFILEDIR=${ASTSPOOLDIR}/outgoing/)
n,System(mktemp ${TMPFILE})
n,System(echo "Channel: Local/89005555555@outgoing" >> ${TMPFILE})
n,System(echo "MaxRetries: 5" >> ${TMPFILE})
n,System(echo "RetryTime: 45" >> ${TMPFILE})
n,System(echo "WaitTime: 120" >> ${TMPFILE})
n,System(echo "Context: outgoing" >> ${TMPFILE})
n,System(echo "Extension: 8${CALLERID(num)}" >> ${TMPFILE})
n,System(echo "Priority: 1" >> ${TMPFILE})
n,System(echo "AlwaysDelete: Yes" >> ${TMPFILE})
n,System(echo >> ${TMPFILE})
n,System(mv ${TMPFILE} ${CALLFILEDIR})
n(hangup),Hangup()

The result of which generates a file for the outgoing call, and when this file is created, asterisk immediately starts processing the call.

Question: How configure adding this call to the queue to the operator, initiating the call only when the operator has finished the conversation. If the operator already has a subscriber in the queue, then put the call in the queue according to the time of receipt of requests to the operator.

The log when the operator is busy xxx555, the subscriber number xxx222 which is initiated via callback.
queues.conf

[QUEUE-A1];
musicclass=default 
strategy=ringall 
timeout=999 
retry=1 
wrapuptime=2 
ringinuse=no 
periodic-announce-frequency=60 
joinempty=no 
leavewhenempty=no 
announce-position=no 
announce-holdtime=no 
member => Local/79005555555@internal/n,0,"79005555555" 

Start by using the * position parameter

  • Attempt to enter the caller into the queue at the numerical position specified. 1 would attempt to enter the caller at the head of the queue, and 3 would attempt to place the caller third in the queue.

Combined with * ${QUEUEPOSITION } variable- When a caller is removed from a queue, his current position is logged in this variable. If the value is 0, then this means that the caller was serviced by a queue member. If non-zero, then this was the position in the queue the caller was in when he left.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.