FOP2 + Queuemetrics + ThirdLane - HOTDESK in Queue log

We are running FOP2, Queuemetrics, Asterisk 1. 4 and ThirdLane.
FOP2 is very useful and intuitive to our users, however we have a minor problem with integration with Queuemetrics.
----
When an Agent logs into Queuemetrics, this results in two entries: HOTDESK and ADDMEMBER to the queue_log (from queuemetrics_extension.conf). This enables Queuemetrics to map an Agent/XXXX to a SIP/XXXX.
----
If a user (who prefers FOP2) uses the simple click "Add <queuename>" against a line/extension then FOP2 only executes an AddMember command, so there is no mapping between the extension and the agent; and therefore our stats just show the physical extension and not the Agent name.
----
Is there a script in FOP2 we can modify that will either:
-Call the queuemetrics extension
OR
-Add the HOTDESK command
----
For reference this is the queuemetrics extension plan:
; extension 33: agent unpause with hotdesking
exten => 33,1,Answer
exten => 33,2,NoOp( "QM: Unpausing Agent/${AGENTCODE} at extension SIP/${QM_AGENT_LOGE
XT} made by '${QM_LOGIN}' " )
exten => 33,3,UnpauseQueueMember(,SIP/${QM_AGENT_LOGEXT})
exten => 33,4,Hangup

; extension 35: agent addqueuemember with hotdesking (for asterisk v1.4+)
exten => 35,1,Answer
exten => 35,2,NoOp( "QM: AddQueueMember (asterisk v1.4+) Agent/${AGENTCODE} at extensi
on SIP/${QM_AGENT_LOGEXT} on queue ${QUEUENAME} made by '${QM_LOGIN}'" )
exten => 35,3,Macro(queuelog,${EPOCH},${UNIQUEID},NONE,Agent/${AGENTCODE},HOTDESK,SIP/
${QM_AGENT_LOGEXT})
exten => 35,4,AddQueueMember(${QUEUENAME},SIP/${QM_AGENT_LOGEXT})
exten => 35,5,Hangup

Comments

  • You can edit FOP2Callbacks.pm to capture events and fire others. There is not much documentation but the file itself. the commands you want to intercept are

    queueadd

    and

    queuelogout

    You can originate a call to a point in your dialplan, or call the QueueLog command directly. Now, I do not have any clue on how you are going to perform that mapping between Agent/1234 and SIP/abcd.

    Best regards,
Sign In or Register to comment.