Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - blackgecko

Pages: [1]
1
After lots of research ive found that you need to configure the AMI parameter in configuration.properties

callfile.dir=tcp:queuemetrics:*****@172.XXX.XXX.XXX

now it is working i just had one problem with the time queuemetrics report

configuration.properties
#The default time zone offset. Valid values -24...24 hours
default.timeZoneOffset=0


qloader.pl
my $timezone_offset  = -5 * 3600;  # in seconds

cause whe are in mexico city.

session of agent from    06/21 - 11:00:58    06/21 - 11:03:00 is reported as    06/21 - 06:00:58    06/21 - 06:03:00

once i changed back to
qloader.pl
my $timezone_offset  = 0 * 3600;  # in seconds

everything is being reported as it should.

hope this is usefull to someone.

2
Im installing a test setup this is the scenario.

Slackware Linux running Asterisk 1.8.7.1
qloader 1.27 installed and running and uploading data correctly

Centos 5.6
Queuemetrics 12.5.1 installed via yum
modified configuration.properties
"default.queue_log_file=sql:P001"
"cluster.servers=testsrv|trix"
"cluster.testsrv.manager=tcp:queuemetrics:*****@172.XXX.XXX.XXX"

I can check Mysql Storage Information and i can see info uploaded

Partition Entries N. calls From: To: Days of data: Last heartbeat:   
P001 1 0   2012-06-20 06:02    2012-06-20 06:02  0,0 days    2012-06-20 06:02 

i can run the setup wizard and i get my queue config from asterisk, so i think manager conection is working

I log in as an agent and when i try to logon to the queue

it has a dropdown menu to select server wich is blank
agent´s code already with the agent code
and current extension where i put the extension im at.

but when i click the run button i get this error

QueueMetrics cannot send the command to the PBX.

so im stuck at this point.

Any help about this ?







3
Have you been able to use a freepbx trunk or outbound route from the queuedial context?, i need to be able to use the pattern matching and replace that freepbx does in my outbound campaign.

4
This one is after the agent has logged in via the phone.


   -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("SIP/1001-b700f958", "No recording needed") in new stack
    -- Executing [860052582880@from-internal:4] Macro("SIP/1001-b700f958", "dialout-trunk|2|60052582880||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-b700f958", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1001-b700f958", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-b700f958", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-b700f958", "DIAL_NUMBER=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-b700f958", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-b700f958", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-b700f958", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-b700f958", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-b700f958", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-b700f958", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-b700f958", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/1001-b700f958", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/1001-b700f958", "REALCALLERIDNUM is 1001") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/1001-b700f958", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/1001-b700f958", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/1001-b700f958", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/1001-b700f958", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/1001-b700f958", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/1001-b700f958", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/1001-b700f958", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/1001-b700f958", "CallerID set to "Agente 1" <1001>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/1001-b700f958", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-b700f958", "OUTNUM=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-b700f958", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/1001-b700f958", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1001-b700f958", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-b700f958", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/1001-b700f958", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/1001-b700f958", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/1001-b700f958", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/1001-b700f958", "post_num=@queuedial-loggedon/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/1001-b700f958", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/1001-b700f958", "the_num=60052582880") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/1001-b700f958", "Local/60052582880@queuedial-loggedon/n|300|") in new stack
    -- Called 60052582880@queuedial-loggedon/n
    -- Executing [60052582880@queuedial-loggedon:1] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_QUEUE=q-600") in new stack
    -- Executing [60052582880@queuedial-loggedon:2] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_NUMBER=52582880") in new stack
    -- Executing [60052582880@queuedial-loggedon:3] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_AGENT=Agent/1001") in new stack
    -- Executing [60052582880@queuedial-loggedon:4] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QDIALER_CHANNEL=Zap/g0/52582880") in new stack
    -- Executing [60052582880@queuedial-loggedon:5] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "QueueName=q-600") in new stack
    -- Executing [60052582880@queuedial-loggedon:6] MixMonitor("Local/60052582880@queuedial-loggedon-4c4e,2", "Q-q-600-1229974350.11666.WAV49|b|") in new stack
  == Begin MixMonitor Recording Local/60052582880@queuedial-loggedon-4c4e,2
    -- Executing [60052582880@queuedial-loggedon:7] GotoIf("Local/60052582880@queuedial-loggedon-4c4e,2", "1?qm-queuedial|s|1") in new stack
    -- Goto (qm-queuedial,s,1)
    -- Executing [s@qm-queuedial:1] NoOp("Local/60052582880@queuedial-loggedon-4c4e,2", "Outbound call -> A:Agent/1001 N:52582880 Q:q-600 Ch:Zap/g0/52582880") in new stack
    -- Executing [s@qm-queuedial:2] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "CDR(accountcode)=QDIALAGI") in new stack
    -- Executing [s@qm-queuedial:3] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "ST=1229974350") in new stack
    -- Executing [s@qm-queuedial:4] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GM=QDV-Agent/1001") in new stack
    -- Executing [s@qm-queuedial:5] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GLOBAL(QDV-Agent/1001)=U") in new stack
  == Setting global variable 'QDV-Agent/1001' to 'U'
    -- Executing [s@qm-queuedial:6] Set("Local/60052582880@queuedial-loggedon-4c4e,2", "GLOBAL(QDV-Agent/1001ans)=0") in new stack
  == Setting global variable 'QDV-Agent/1001ans' to '0'
    -- Executing [s@qm-queuedial:7] Macro("Local/60052582880@queuedial-loggedon-4c4e,2", "queuelog|1229974350|1229974350.11666|q-600|Agent/1001|ENTERQUEUE|-|52582880") in new stack
    -- Executing [s@macro-queuelog:1] QueueLog("Local/60052582880@queuedial-loggedon-4c4e,2", "q-600|1229974350.11666|Agent/1001|ENTERQUEUE|-|52582880|") in new stack
    -- Executing [s@qm-queuedial:8] Dial("Local/60052582880@queuedial-loggedon-4c4e,2", "Zap/g0/52582880|30|gM(queuedial-answer^1229974350.11666^QDV-Agent/1001^q-600^Agent/1001^1229974350)") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called g0/52582880
    -- Zap/2-1 is proceeding passing it to Local/60052582880@queuedial-loggedon-4c4e,2
    -- Local/60052582880@queuedial-loggedon-4c4e,1 is proceeding passing it to SIP/1001-b700f958


pbxccvallejo*CLI> show agents
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')

as you can see it is not passing the agent correct but i dont know why.

5
 Executing [s@macro-record-enable:5] NoOp("SIP/1001-09670138", "No recording needed") in new stack
    -- Executing [860057142513@from-internal:4] Macro("SIP/1001-09670138", "dialout-trunk|2|60057142513||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/1001-09670138", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/1001-09670138", "0|Authenticate|") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/1001-09670138", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/1001-09670138", "DIAL_NUMBER=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/1001-09670138", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/1001-09670138", "GROUP()=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/1001-09670138", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/1001-09670138", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/1001-09670138", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/1001-09670138", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/1001-09670138", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/1001-09670138", "1?start") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing [s@macro-outbound-callerid:4] NoOp("SIP/1001-09670138", "REALCALLERIDNUM is 1001") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/1001-09670138", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,10)
    -- Executing [s@macro-outbound-callerid:10] Set("SIP/1001-09670138", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/1001-09670138", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/1001-09670138", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/1001-09670138", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,17)
    -- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/1001-09670138", "1?usercid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/1001-09670138", "1?report") in new stack
    -- Goto (macro-outbound-callerid,s,23)
    -- Executing [s@macro-outbound-callerid:23] NoOp("SIP/1001-09670138", "CallerID set to "Agente 1" <1001>") in new stack
    -- Executing [s@macro-dialout-trunk:12] AGI("SIP/1001-09670138", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/1001-09670138", "OUTNUM=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/1001-09670138", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/1001-09670138", "1?gocall") in new stack
    -- Goto (macro-dialout-trunk,s,17)
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/1001-09670138", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1001-09670138", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/1001-09670138", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/1001-09670138", "pre_num=AMP:Local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/1001-09670138", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/1001-09670138", "post_num=@queuedial-loggedon/n") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/1001-09670138", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("SIP/1001-09670138", "the_num=60057142513") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("SIP/1001-09670138", "Local/60057142513@queuedial-loggedon/n|300|") in new stack
    -- Called 60057142513@queuedial-loggedon/n
    -- Executing [60057142513@queuedial-loggedon:1] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_QUEUE=q-600") in new stack
    -- Executing [60057142513@queuedial-loggedon:2] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_NUMBER=57142513") in new stack
    -- Executing [60057142513@queuedial-loggedon:3] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_AGENT=Agent/") in new stack
    -- Executing [60057142513@queuedial-loggedon:4] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QDIALER_CHANNEL=Zap/g0/57142513") in new stack
    -- Executing [60057142513@queuedial-loggedon:5] Set("Local/60057142513@queuedial-loggedon-7c2c,2", "QueueName=q-600") in new stack
    -- Executing [60057142513@queuedial-loggedon:6] MixMonitor("Local/60057142513@queuedial-loggedon-7c2c,2", "Q-q-600-1229973938.11644.WAV49|b|") in new stack
    -- Executing [60057142513@queuedial-loggedon:7] GotoIf("Local/60057142513@queuedial-loggedon-7c2c,2", "0?qm-queuedial|s|1") in new stack
    -- Executing [60057142513@queuedial-loggedon:8] NoOp("Local/60057142513@queuedial-loggedon-7c2c,2", "Extension 1001 is not logged on as agent.") in new stack
    -- Executing [60057142513@queuedial-loggedon:9] Playback("Local/60057142513@queuedial-loggedon-7c2c,2", "agent-loggedoff") in new stack
  == Begin MixMonitor Recording Local/60057142513@queuedial-loggedon-7c2c,2
    -- <Local/60057142513@queuedial-loggedon-7c2c,2> Playing 'agent-loggedoff' (language 'en')
    -- Local/60057142513@queuedial-loggedon-7c2c,1 answered SIP/1001-09670138
    -- Executing [60057142513@queuedial-loggedon:10] Congestion("Local/60057142513@queuedial-loggedon-7c2c,2", "") in new stack
  == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/1001-09670138' in macro 'dialout-trunk'
  == Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'SIP/1001-09670138'
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/1001-09670138", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/1001-09670138", "w") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/1001-09670138", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/1001-09670138", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/1001-09670138", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/1001-09670138", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/1001-09670138", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1001-09670138' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/1001-09670138'
  == Spawn extension (queuedial-loggedon, 60057142513, 10) exited non-zero on 'Local/60057142513@queuedial-loggedon-7c2c,2'
  == End MixMonitor Recording Local/60057142513@queuedial-loggedon-7c2c,2

there it is

pbxccvallejo*CLI> show agents
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')


6
i dont know if a cant make myself clear enough, the problem is not to log on, is that if you do it from the qm agent screen, you cant make outside calls trough the quemetrics-loggeon context, im following the trixbox-outgoing manual.

if instead you log from the phone calling the AgentCallBackLogin() you also get logged on and can make outbound calls that are correctly tracked by queuemetrics.

in both cases the agent gets logged on, but in one case he just cant make outbound calls.

7
 -- Executing [20@queuemetrics:1] Answer("Local/20@queuemetrics-01ae,2", "") in new stack
    -- Executing [20@queuemetrics:2] NoOp("Local/20@queuemetrics-01ae,2", " "QM: Logging on Agent/1002 to extension 1002@from-internal" ") in new stack
    -- Executing [20@queuemetrics:3] AgentCallbackLogin("Local/20@queuemetrics-01ae,2", "1002||1002@from-internal") in new stack
    -- <Local/20@queuemetrics-01ae,2> Playing 'agent-loginok' (language 'en')
       > Channel Local/20@queuemetrics-01ae,1 was answered.
    -- Executing [10@queuemetrics:1] Answer("Local/20@queuemetrics-01ae,1", "") in new stack
    -- Executing [10@queuemetrics:2] Wait("Local/20@queuemetrics-01ae,1", "10") in new stack
  == Callback Agent '1002' logged in on 1002@from-internal
    -- Executing [20@queuemetrics:4] Hangup("Local/20@queuemetrics-01ae,2", "") in new stack
  == Spawn extension (queuemetrics, 20, 4) exited non-zero on 'Local/20@queuemetrics-01ae,2'
  == Spawn extension (queuemetrics, 10, 2) exited non-zero on 'Local/20@queuemetrics-01ae,1'

8
well but its not working, if an agent gets into QM, and logs in via the agent screen, even when in asterisk it appears as available 
1001         (Agente 1) available at '1001@from-internal' (musiconhold is 'default')

when he calls trough the quedial-loggedon context he gets the
aggent logedoff recording

if he logs in via the *600 extension he can call without problem

9
Hi:

im implementing a queuemetrics for inbound and outbound monitor, inbound calls are working great.

With the outbound calls im having a problem, im forcing that only logged agents can call so im using the
queuedial-loggedon context.

The problem is that if the agent logs in vi the QM screen he can´t do outbound calls cause asterisk says agent-loggedoff

if they log on via the phone

[from-internal-custom]
exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)
exten => _*60[0-5],n,Hangup

it just works.

I´ve been doing some research comparing my dialplan for and the extensions_queuemetrics.conf and found this

exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)
exten => _*60[0-5],n,Hangup

exten => 20,1,Answer
exten => 20,2,NoOp( "QM: Logging on Agent/${AGENTCODE} to extension ${AGENT_EXT}@from-internal" )
exten => 20,3,AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal)
exten => 20,4,Hangup

As i see i think the problem is within this line
exten => 20,3,AgentCallBackLogin(${AGENTCODE}||${AGENT_EXT}@from-internal)

wich is diferrent form this
exten => _*60[0-5],1,AgentCallBackLogin(||@from-internal)

where im not passing the ${AGENTCODE} and ${AGENT_EXT} as in the queuemetrics dialplan

Is there any way to make it work the same way ? i don want the to have to dial another code to log in cause this can add another point of failure.

Thanks in advance and great work with you software.


Pages: [1]