From 431f6a926bebfdb326906b08a5d08bf609fcb8ed Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 13 Feb 2007 15:17:16 +0000 Subject: [PATCH] updated docs changed vicidial.php to update customer info before AXFER or CXFERs git-svn-id: svn://192.168.202.10@519 3d104415-ff17-0410-8863-d5cf3c621b8a --- docs/QUEUEMETRICS.txt | 22 ++++++- docs/SCRATCH_INSTALL.txt | 2 +- .../TO_BE_TRANSLATED_2.0.3.txt | 2 +- www/agc/vicidial.php | 58 +++++++++++-------- 4 files changed, 54 insertions(+), 30 deletions(-) diff --git a/docs/QUEUEMETRICS.txt b/docs/QUEUEMETRICS.txt index b492a768..b3080dad 100644 --- a/docs/QUEUEMETRICS.txt +++ b/docs/QUEUEMETRICS.txt @@ -1,6 +1,6 @@ VICIDIAL and QueueMetrics -This document goes over the features and needed changes made to VICIDIAL to enable it to insert activity records into the queue_log and other tables in MySQL that QueueMetrics uses for it's statistical analysis and reports. +This document goes over the features and needed changes made to VICIDIAL to enable it to insert activity records into the queue_log and other tables in MySQL that QueueMetrics uses for it's statistical analysis and reports. This document should not be taken as a HOWTO for proper installation steps to get QueueMetrics working. QueueMetrics is a closed-source, commercial product written by Loway Research in Italy. The writers of VICIDIAL do not support or warranty QueueMetrics or it's functionality with VICIDIAL in any way. @@ -25,11 +25,19 @@ rpm -i jdk-1_5_0_11-linux-i586.rpm wget http://www.mirrorgeek.com/apache.org/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz gunzip apache-tomcat-5.5.20.tar.gz tar xvf apache-tomcat-5.5.20.tar -cd apache-tomcat-5.5.20 ln -s apache-tomcat-5.5.20 tomcat +cd apache-tomcat-5.5.20 + JAVA_HOME=/usr/java/jdk1.5.0_11/ JAVA_OPTS="-Xms256M -Xmx512M" JRE_HOME=/usr/java/jdk1.5.0_11/jre + +or + +JRE_HOME=/usr/java/jre1.6.0/ +JAVA_HOME=/usr/java/ +JAVA_OPTS="-Xms256M -Xmx512M" + export JAVA_HOME export JAVA_OPTS export JRE_HOME @@ -47,6 +55,8 @@ If it did, then you want to add the following lines to your /etc/rc.d/rc.local f export JRE_HOME /usr/local/tomcat/bin/startup.sh + + cd /usr/local *** download QueueMetrics and place it in /usr/local *** gunzip QueueMetrics-1.1.tar.gz @@ -69,7 +79,13 @@ You now need to add the database tables, configure the web.xml file and configur -Now to the database side of things. First the queue_log table: +Now to the database side of things. +First, give permissions to your user: + +GRANT ALL PRIVILEGES ON queuemetrics.* TO qm@'localhost' IDENTIFIED BY 'qm'; +GRANT ALL PRIVILEGES ON queuemetrics.* TO qm@'%' IDENTIFIED BY 'qm'; + +Second, the queue_log table: mysql> describe queue_log; +-----------+------------------+------+-----+---------+-------+ diff --git a/docs/SCRATCH_INSTALL.txt b/docs/SCRATCH_INSTALL.txt index 45f44c29..48a859ee 100644 --- a/docs/SCRATCH_INSTALL.txt +++ b/docs/SCRATCH_INSTALL.txt @@ -1,4 +1,4 @@ -Asterisk/astguiclient install from scratch. v.2.0.3 2007-01-17 +Asterisk/astguiclient install from scratch. v.2.0.3 2007-02-XX By the astGUIclient group astguiclient@eflo.net **** IMPORTANT - In order for vicidial/astguiclient to function correctly please diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt index 5e0e4fd6..00534d5f 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.0.3.txt @@ -138,7 +138,7 @@ QueueMetrics URL -<\/B> This is the URL or web site address used to get to your ############################################################ CLIENT FAST DIAL|| -YOU MUST BE ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL|| +YOU MUST ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL|| SELECT A PAUSE CODE :|| ENTER A PAUSE CODE|| YOU MUST BE PAUSED TO ENTER A PAUSE CODE IN AUTO-DIAL MODE|| diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 1e2be841..d5b134b7 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -146,10 +146,11 @@ # 70206-1201 - Fixed allow_closers bug # 70206-1332 - Added vicidial_recording_override users setting function # 70212-1252 - Fixed small issue with CXFER +# 70213-1018 - Changed CXFER and AXFER to update customer information before transfer # -$version = '2.0.117'; -$build = '70212-1252'; +$version = '2.0.118'; +$build = '70213-1018'; require("dbconnect.php"); @@ -1736,6 +1737,35 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} // Send Originate command to manager to place a phone call function basic_originate_call(tasknum,taskprefix,taskreverse,taskdialvalue,tasknowait,taskconfxfer) { + var regCXFvars = new RegExp("CXFER","g"); + var tasknum_string = tasknum.toString(); + if (tasknum_string.match(regCXFvars)) + { + var Ctasknum = tasknum_string.replace(regCXFvars, ''); + if (Ctasknum.length < 2) + {Ctasknum = '990009';} + var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + tasknum = Ctasknum + "*CL_" + campaign + '' + closerxfercamptail + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; + + CustomerData_update(); + + } + var regAXFvars = new RegExp("AXFER","g"); + if (tasknum_string.match(regAXFvars)) + { + var Ctasknum = tasknum_string.replace(regAXFvars, ''); + if (Ctasknum.length < 2) + {Ctasknum = '83009';} + var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + if (closerxfercamptail.length < 3) + {closerxfercamptail = 'IVR';} + tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; + + CustomerData_update(); + + } + + var xmlhttp=false; /*@cc_on @*/ /*@if (@_jscript_version >= 5) @@ -1757,27 +1787,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} } if (xmlhttp) { - var regCXFvars = new RegExp("CXFER","g"); - var tasknum_string = tasknum.toString(); - if (tasknum_string.match(regCXFvars)) - { - var Ctasknum = tasknum_string.replace(regCXFvars, ''); - if (Ctasknum.length < 2) - {Ctasknum = '990009';} - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; - tasknum = Ctasknum + "*CL_" + campaign + '' + closerxfercamptail + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + document.vicidial_form.phone_number.value + '*' + user + '*'; - } - var regAXFvars = new RegExp("AXFER","g"); - if (tasknum_string.match(regAXFvars)) - { - var Ctasknum = tasknum_string.replace(regAXFvars, ''); - if (Ctasknum.length < 2) - {Ctasknum = '83009';} - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; - if (closerxfercamptail.length < 3) - {closerxfercamptail = 'IVR';} - tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; - } if (taskprefix == 'NO') {var orig_prefix = '';} else {var orig_prefix = agc_dial_prefix;} if (taskreverse == 'YES') @@ -2343,7 +2352,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} Nactiveext = null; Nactiveext = xmlhttp.responseText; // alert(xmlhttp.responseText); - hideMainXfeR(); } } delete xmlhttp; @@ -2686,7 +2694,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} if ( (MDDiaLCodEform.length < 1) || (MDPhonENumbeRform.length < 5) ) { - alert("YOU MUST BE ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL"); + alert("YOU MUST ENTER A PHONE NUMBER AND DIAL CODE TO USE FAST DIAL"); } else {