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.


Topics - QueueMetrics

Pages: 1 ... 8 9 [10] 11 12 13
136
We have been working for quite a while on a purely-dialplan solution to replace the queueDial.agi that seems to have problems with a number of 1.4 systems.

So we developed this script that targets Asterisk 1.4 and is a complete replacement of queueDial.agi:


Code: [Select]
[queuedial]
; using a global variable to pass values back from the answer-detect macro
; STATUS = U unanswered
;        = A answered
;
exten => _9XXX.,1,Set(MY_QUE=q-${EXTEN:1:3})
exten => _9XXX.,n,Set(MY_NUM=${EXTEN:4})
exten => _9XXX.,n,Set(MY_AGENT=Agent/${CALLERID(num)})
exten => _9XXX.,n,Set(MY_TECH=Zap/g0/)
exten => _9XXX.,n,NoOp,Ag: ${MY_AGENT} N: ${MY_NUM} Q: ${MY_QUE} T: ${MY_TECH}
exten => _9XXX.,n,MixMonitor(Q-${MY_QUE}-${UNIQUEID}.wav|b|)

exten => _9XXX.,n,Set(ST=${EPOCH})
exten => _9XXX.,n,Set(GM=QDIALV${MY_AGENT})
exten => _9XXX.,n,Set(GLOBAL(${GM})=U)
exten => _9XXX.,n,Set(GLOBAL(${GM}ans)=0)
exten => _9XXX.,n,System( echo "${ST}|${UNIQUEID}|${MY_QUE}|${MY_AGENT}|ENTERQUEUE|-|${MY_NUM}" >> /var/log/asterisk/queue_log )
exten => _9XXX.,n,Dial(${MY_TECH}${MY_NUM}||M(queuedial-answer^${UNIQUEID}^${GM}^${MY_QUE}^${MY_AGENT}^${ST}))

; Trapping call termination here
exten => h,1,NoOp( "Call exiting: status ${GLOBAL(${GM})} answered at: ${GLOBAL(${GM}ans)} DS: ${DIALSTATUS} HU: ${HANGUPCAUSE} "  )
exten => h,n,Goto(case-${GLOBAL(${GM})})
exten => h,n,Hangup()

; Call unanswered
exten => h,n(case-U),Set(WT=$[${EPOCH} - ${ST}])
exten => h,n,System( echo "${EPOCH}|${UNIQUEID}|${MY_QUE}|${MY_AGENT}|ABANDON|1|1|${WT}" >> /var/log/asterisk/queue_log )
exten => h,n,Hangup()

; call answered
exten => h,n(case-A),Set(WT=$[${GLOBAL(${GM}ans)} - ${ST}])
exten => h,n,Set(CT=$[${EPOCH} - ${GLOBAL(${GM}ans)}])
exten => h,n,System( echo "${EPOCH}|${UNIQUEID}|${MY_QUE}|${MY_AGENT}|COMPLETECALLER|${WT}|${CT}" >> /var/log/asterisk/queue_log )
exten => h,n,Hangup()

[macro-queuedial-answer]
; Expecting $ARG1: uniqueid of the caller channel
;           $ARG2: global variable to store the answer results
;           $ARG3: queue name
;           $ARG4: agent name
;           $ARG5: enterqueue
exten => s,1,NoOp("Macro: queuedial-answer UID:${ARG1} GR:${ARG2} Q:${ARG3} A:${ARG4} E:${ARG5}")
exten => s,n,Set(NOW=${EPOCH})
exten => s,n,Set(WD=$[${NOW} - ${ARG5}])
exten => s,n,System( echo "${NOW}|${ARG1}|${ARG3}|${ARG4}|CONNECT|${WD}" >> /var/log/asterisk/queue_log )
;exten => s,n,DumpChan()
exten => s,n,Set(GLOBAL(${ARG2})=A)
exten => s,n,Set(GLOBAL(${ARG2}ans)=${NOW})
exten => s,n,NoOp("Macro queuedial-answer terminating" )

Before telling everybody to use this, though, we would like our power-users to test this out and find any flaws that may be lingering :)

Known advantages over QueueDial.agi:
- Simpler setup and debugging
- No 'h' problems with calls that are not closed
- Correct tracking of answering time even for outbound (the calls stays unsnswered and then answered at the right time)
- Easier to add options (eg a timeout) to the actual DIAL commend executed

Known issues:
- The script does not distinguish whether it was the AGENT or the CALLED PARTY to hang up (anybody knows how?)
- It's for 1.4.x only
- It uses System() a number of times and not the QueueLog() app
- It uses global variables to pass values back from a different leg of the call



137
QueueMetrics news / QueueMetrics 1.4.4 released today
« on: May 16, 2008, 16:55:56 »
Today we released the new version of QueueMetrics, 1.4.4. An official announcement will be probably made on Monday, meanwhile you can download it from our website: http://queuemetrics.com/download.jsp

The most important changes are:
- Quality Assessment mode for calls: it is now possible to grade live and historical calls using pre-defined forms, and obtain a wealth of information about the agent's behaviour. This feature is EXPERIMENTAL - please see the updated User Manual for how to enable it.
- New clustered licences for smaller systems (#269)
- The realtime buttons can be disabled from the configuration, so the user cannot toggle them (#305)
- The default database for QM now ships with all "special" users (Visitors, robots, etc) disabled. You should enable them manually only if you need them (#341)
- A new switch lets you decide whether pauses are shown as absolute time versus time passed since (#346)
- The queue name and queue URL are passed along the monitoring variables (#245 - #243)
- The licence page now shows the current path to web.xml
- The Qloaderd init script now works with a config in /etc/sysconfig under RedHat/CentOS (#316)
- A new configuration option makes it possible to have a dialog trace for the Live! page. this should make debugging and case replication way easier for us. (#322 - #326)
- A new Spanish translation by D. Guerrero is available. (#331)
- Though per-queue PAUSE records are not supported at the moment, QM will consider them as PAUSEALL entries (#46)

...plus over 20 bugs fixed and little improvements - see the changelog. In total, this release produces well over 150 different results!

Please try installing and let us know how it goes.
The new QA features are not enabled by default. Just wait a few days until the new manual is released.  ;D

138
Problems / Posting screenshots on this forum
« on: May 01, 2008, 09:48:16 »
If you have a screenshot you want to be shown, you can post it to some image hosting site, like http://imageshack.us/ and link it from here.
They will provide you a sample code to copy-and-paste here. No account needed, so it should be trivial to do.

For example, to get this result....



If you click on the image above, there is a line that says "Forum". Copy that and paste it here so you get a thumbnail image that will open full-size like the one above.


139
Lost licences / E-mail... what a hassle ;D
« on: April 11, 2008, 15:43:22 »
With the current flood of spam that everyday fills the internet (and our mailboxes) it sometimes happens that some e-mail gets filtered away.

If you request a QueueMetrics demo key and do not receive a confirmation e-mail within a few minutes, or you receive the confirmation email but receive no demo licence within 24-48hrs, please post here so that we can send you a private message and make contact.

So please create an accont for the Support Board just now and post a new topic in the "Lost mail and licences" forum. We'll contact you ASAP.
 

140
QueueMetrics news / Couple of new FAQ entries
« on: March 26, 2008, 16:59:41 »
We added a couple of new FAQs:

* Using a different Asterisk manager port

http://queuemetrics.com/faq.jsp#faq-042-different_manager_port


* "You do not have the rights to perform the requested action."

http://queuemetrics.com/faq.jsp#faq-041-no_rights

141
QueueMetrics news / Office closure for Easter.
« on: March 21, 2008, 15:38:10 »
Our office will be closed from Friday March 21st, 2008 to Tuesday March 25th, 2008 for the Easter Break.

142
QueueMetrics news / New board on Outbound
« on: March 06, 2008, 10:51:19 »
We have decided to move all messages about queueDial.agi and outbound tracking to a new, separate board - you can find it here:

http://forum.queuemetrics.com/index.php?board=12.0

Hope this will be helpful.

143
Outbound and QueueMetrics / READ THIS FIRST: outbound
« on: March 06, 2008, 10:46:28 »
If you run Asterisk 1.4 or newer, you should not be using the queueDial.agi script but a pure-scripting solution: see http://forum.queuemetrics.com/index.php?topic=261.0




We know that with some versions of Asterisk 1.4 the queueDial.agi does not track correctly remote caller hang up.

A workaround can be found here: http://forum.queuemetrics.com/index.php?topic=41.0

 

Pages: 1 ... 8 9 [10] 11 12 13