Author Topic: Some Queue Log Information Not Logged Into the table  (Read 7700 times)

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Some Queue Log Information Not Logged Into the table
« 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

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Some Queue Log Information Not Logged Into the table
« Reply #1 on: October 01, 2007, 10:36:46 »
It really depends on your dialplan.

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #2 on: October 01, 2007, 11:51:28 »
Can You Explain Precisely how it depends on the DialPlan?

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #3 on: October 01, 2007, 13:07:57 »
Shall I do something on the Queue Or SIP user to Allow registering for login/log off event?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Some Queue Log Information Not Logged Into the table
« Reply #4 on: October 01, 2007, 20:13:18 »
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.

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #5 on: October 02, 2007, 08:12:50 »
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

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Some Queue Log Information Not Logged Into the table
« Reply #6 on: October 02, 2007, 08:50:24 »
You should look at the TrixBox tutorial - it's detailed step by step.

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #7 on: October 02, 2007, 12:32:32 »
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
« Last Edit: October 02, 2007, 13:20:31 by MAbdullah47 »

MAbdullah47

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #8 on: October 02, 2007, 14:56:41 »
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

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Some Queue Log Information Not Logged Into the table
« Reply #9 on: October 02, 2007, 14:58:47 »
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?