ATTENDEDTRANSFER not reported to /var/log/asterisk/queue_log

Hello
i noticed on
Freepbx 15 and 16
asterisk 18 and 20
even when. I’m using *2 or ##
both ATTENDEDTRANSFER and. BLINDTRANSFER events are not reported to queue_log
WHY ?
Please advice

i noticed that it is a Freep PBX issue because

when I add myself as agent in Advanced mode
like
P222,0

after that events appear in the Queue
but as it says here is settings with Advanced mode there might be a problems
Where do I read which ones?

2-
this method is not working for dynamic agents

because when I log in queue by dialing *455001
am added as Local again

Anton (Local/222@from-queue/n from hint:222@ext-local) (ringinuse enabled) (dynamic) (Not in use)

and I cannot use. *45 to log in to all queues. (because AGI is not send me as an dynamic agent if P222,0 is used)

The reason why I’m asking this its because when a call comes (customer A ) in queue and then the agent "Bob " transfers this call to “Customer B” using the attended transfer.
Agent is no longer talking.
But because “Customer A” and “Customer B” are talking let’s say for an hour.
in the Queue log after we have Bob call duration = Hour (in fact 1-2 min )
And there is no way to exclude transferred time because transferred event not pupulated

Change
Settings>Advance Settings>Dialplan and Operational>Asterisk Dial Options

To
HhTr

I am trying to remeber, but I think we had a smilar issue. It also locked up the transfering agent (they showed busy, getting no new queue calls, until the transfered call was hung up from the PBX.). It was such a while ago I cannot remeber if the above was how we fixed it, but I think so.

thanks
but they are there by default


and problem is not related to " they showed busy, getting no new queue calls, until the transfered call was hung up from the PBX"

still actual

Have you tested with the built-in transfer options?

yes i describe it here
unfortunately it is default behaviour for FREEPBX

I don’t see where you tested transferring a call via *2 for an Attended Transfer or ## for a Blind Transfer. That post just tells us how you are logging into the queues.

Hello
i noticed on
Freepbx 15 and 16
asterisk 18 and 20
even when. I’m using *2 or ##
both ATTENDEDTRANSFER and. BLINDTRANSFER events are not reported to queue_log
WHY ?
Please advice

Ahh, sorry I overlooked that in the original post. There’s been a couple about this and the answer was provided at one point. This is about channel optimization in Asterisk and it looks like FreePBX doesn’t optimize the local channels from the queue.

Due to FreePBX using the /n option with local channels, the local channel is staying in the call path. So the caller’s channel is still in the queue and the local channel(s) connecting the caller in the queue to the agent is was is being transferred. So as explained before, the actual channel of the caller hasn’t left the queue so it doesn’t look like it was transferred from the queue.

The local channel needs to be optimized out of the call path once the caller and the agent are connected. Then when the caller is transferred their channel actually leaves the queue and the transfer and type is logged.

So FreePBX does this with the agents:
Local/100@from-queue/n,0,"Agent",hint:100@ext-local ← with the /n optimization is off, local channel is going to stay in the call and be what is transferred.

To do what you are looking for it needs to be:
Local/100@from-queue,0,"Agent",hint:100@ext-local ← local channel is optimized and will drop out of the call when caller/agent are connected. Transfers are logged in queue_log

The downside of the local channel dropping out of the call is that any Dial() options or other channel variables that were set on the local channel go away with the channel. So you’d need to make sure nothing is dependant of needing the variables that might be only on the local channel.

Correct
but because of that

"The reason why I’m asking this its because when a call comes (customer A ) in queue and then the agent “Bob " transfers this call to “Customer B” using the attended transfer.
Agent is no longer talking.
But because “Customer A” and “Customer B” are talking let’s say for an hour.
in the Queue log after we have Bob call duration = Hour (in fact 1-2 min )
And there is no way to exclude transferred time because transferred event not pupulated”

i noticed. that i do have transfer events
when. i. use agents as
P222,0

but if they use *45 for login/logout.
they appear again as Local/222@from-queue/n

thanks, i also noticed that from this post

a little bit strange situation without logging transferred calls right ?