QueueMetrics > QueueMetrics installation

Echoing Logon/Logoff events to realtime queue_log

(1/1)

trymes:
In the QM manual, a queue logon context is described that uses the following line to echo an event to the queue_log file:

exten => _422XX,3,System( echo "${EPOCH}|${UNIQUEID}|NONE|SIP/${EXTEN:3}|\AGENTLOGIN|-" >> /var/log/asterisk/queue_log )

Now, how would I accomplish the same thing with the built-in realtime queue_log in Asterisk 1.6+?

Many thanks,

Tom

trymes:
I hate to answer my own question, but I'm guessing that the "QueueLog" application is the one that will be the answer to my question?

A specific entry that I ought to use for QM would still be helpful....

Tom

QueueMetrics:
Yes i think our demo dialplan does use the QueueLog application.

trymes:
Can you point me to that? The manual still has the "echo" method I pasted above.

Tom

QueueMetrics:
I am quoting from our standard extensions_queuemetrics.conf:



--- Quote ---[macro-queuelog]
; The advantage of using this macro is that you can choose whether to use the Shell version
; (where you have complete control of what gets written) or the Application version (where you
; do not need a shellout, so it's way faster).
;
; Expecting  $ARG1: Timestamp
;            $ARG2: Call-id
;            $ARG3: Queue
;            $ARG4: Agent
;            $ARG5: Verb
;            $ARG6: Param1
;            $ARG7: Param2
;            $ARG8: Param3
;
;exten => s,1,System( echo "${ARG1}|${ARG2}|${ARG3|${ARG4}|${ARG5}|${ARG6}|${ARG7}|${ARG8}" >> /var/log/asterisk/queue_log )
exten => s,1,QueueLog(${ARG3},${ARG2},${ARG4},${ARG5},${ARG6}|${ARG7}|${ARG8})

--- End quote ---

So you can see the equivalence.

Navigation

[0] Message Index

Go to full version