QueueMetrics forum
QueueMetrics => MySQL storage and Qloaderd/Uniloader => Topic started by: MAbdullah47 on October 01, 2007, 09:52:38
-
Dear Members
I implemented the queueloader on my server machines successfully, I notices that some (Queue Log Information) is not registered on the database table (log_file) based on the information on this link:
http://www.voip-info.org/tiki-index.php?page=Asterisk+log+queue_log
The majority of the log information registered on the database successfully but some of important information’s are not (never) registered like:(AGENTLOGOFF/AGENTLOGIN/AGENTCALLBACKLOGOFF) , I tried many times to switch off the telephone(X-Lite soft phone) powers and on it again and register a new user but it never registered on the database any one have feed back on how to resolve this issue.
Some information like(CONNECT(holdtime),ENTERQUEUE(url|callerid) is registered on the database and some times are not registered.
I Also notices that Qloader will stop if there were no any activity specially at night so what Is the steps that should take place to reactivate qloader?
How I keep it active even if there are no call activities on the network?
Thanks
-
It really depends on your dialplan.
-
Can You Explain Precisely how it depends on the DialPlan?
-
Shall I do something on the Queue Or SIP user to Allow registering for login/log off event?
-
You need to have AgentLogin or AgentCallbackLogin in the dialplan for agent events to be recorded - or you can record them manually if you really need to use a different setup.
-
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 .
-
You should look at the TrixBox tutorial - it's detailed step by step.
-
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
-
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.
-
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?