Author Topic: FreePBX(AsteriskNow) transfer  (Read 16888 times)

moa

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • View Profile
Re: FreePBX(AsteriskNow) transfer
« Reply #15 on: November 19, 2010, 20:04:57 »
This sounds a bit like Frankenstein Jr. :-) but.... chapeau!

Does this mean that my forum member status can change from "Newbie" to "Frankenstein Jr." ?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: FreePBX(AsteriskNow) transfer
« Reply #16 on: November 22, 2010, 12:35:54 »
I can just add some karma to your profile. You'll have to provide your own Frau Blücher....  ;D

bhenry

  • Jr. Member
  • **
  • Posts: 69
  • Karma: 1
    • View Profile
    • Email
Re: FreePBX(AsteriskNow) transfer
« Reply #17 on: November 22, 2010, 17:30:36 »
Just to note, I believe I fixed my issue as well.  I am passing device state with queuemetrics login context.  So it looks something like this:


; extension 25: agent addqueuemember (for asterisk v1.4+)
exten => 25,1,Answer
exten => 25,2,NoOp( "QM: AddQueueMember (asterisk v1.4+) Agent/${AGENTCODE} on queue ${QUEUENAME} made by '${QM_LOGIN}'" )
exten => 25,3,Macro(queuelog,${EPOCH},${UNIQUEID},NONE,Agent/${AGENTCODE},HOTDESK,SIP/${AGENTCODE}@pbx01)
exten => 25,4,AddQueueMember(${QUEUENAME},Local/${AGENTCODE}@from-queue/n,,,SIP/${AGENTCODE}@pbx01)
exten => 25,5,Hangup

This fixed my issue with transfers not being shown in queue_log and also fixes the device state issue of agents remaining in use after a transfer.  I have not put it into production yet but in the labs it is working succesfully.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: FreePBX(AsteriskNow) transfer
« Reply #18 on: November 23, 2010, 16:58:54 »
Applause! :)

trymes

  • Jr. Member
  • **
  • Posts: 84
  • Karma: 0
    • View Profile
Re: FreePBX(AsteriskNow) transfer
« Reply #19 on: October 15, 2012, 15:32:51 »
I am now struggling with this exact problem. As you all have pointed out, it's a side-effect of the fact that FreePBX uses local channels for the queues, which is generally a Good Thing®. However, I am a little uncomfortable with just deleting the "COMPLETEDAGENT" entry from the queue_log, as it leaves a portion of the call leg "lost", and if the call was transferred to another agent, wouldn't you like to be able to see that call and report on it?

I wonder if it wouldn't make sense to modify the way this is currently being done. When we add the "TRANSFER" line, we create the problem that one call has two termination reasons. There are two ways to resolve this:

1.) Delete the second termination reason.
2.) Add entries that "begin" a second call that will be terminated by the eventual "COMPLETEDAGENT" entry.

Your original solution implements #1, but I think it might be better and simpler to implement #2. This would eliminate the cron job and also have the side benefit of allowing us to see the transferred portion of the call and report on it. If the transfer was to another agent, the agent's information could be used, and if it was transferred to an outside person, it could be shown as a call to an agent named "Outside Number" or similar.

Thoughts?

Tom