QueueMetrics > MySQL storage and Qloaderd/Uniloader

Some Queue Log Information Not Logged Into the table

<< < (2/2)

MAbdullah47:
Can You Help me by some example step by step on how to Add Commands that do what I need to register those events, Either through the FreePbx web site or through extensions.conf precisely .

QueueMetrics:
You should look at the TrixBox tutorial - it's detailed step by step.

MAbdullah47:
I got some information here:

http://queuemetrics.com/faq.jsp#faq-018-dynamic_agents

But How I Implement what is inside the link on my real case , my real case is:

I have Queue name (900) and three Agent members:
Agent/101
Agent/102
Agent/103

I want the log to register each login / logoff activities .

Note: I'm not Installed queuemetrics on my machine Just only queuelodered 1.7

Thanks

MAbdullah47:
Here is a sample for what i did on extensions.conf :

[agentlogin]
exten => s,1,AddQueueMember(900,Agent/${CALLERID(num)})
exten => s,n,System( echo 
"${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLERID(num)}|AGENTLOGIN|-" >> /var/log/asterisk/queue_log )
exten => s,n,Hangup()


[agentgogoff]
; removequeuemember - 423
exten => s,1,RemoveQueueMember(900,Agent/${CALLERID(num)})
exten => s,n,DBget(ORGEPOCH=dynlogin/log_Agent-${CALLERID(num)})
exten => s,n,Set(RV=$[${EPOCH} - ${ORGEPOCH}])
exten => s,n,GotoIf($["${RV}" = "0"]?8:6)
exten => s,n,System( echo  "${EPOCH}|${UNIQUEID}|NONE|Agent/${CALLERID(num)}|AGENTLOGOFF|-|${RV}" >> /var/log/asterisk/queue_log )
exten => s,n,Hangup

But Still there is no any Event of Agentlogin or Agentlogoff registered on my queue_log file nor In Queue_log table , what is the modification taht I should do on my previous text.

MAbdullah47:
On My soft phone I pressed 900* then It gets login + password and succeffuly logged on but this events didn't registered on my log file, why?

Navigation

[0] Message Index

[*] Previous page

Go to full version