From 5b2d0095b7c7bf255afd2104054fd8560a7e0a3d Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 26 Nov 2007 07:31:09 +0000 Subject: [PATCH] fixed small bug in vicidial.php small changes to agi-IVR_recording script git-svn-id: svn://192.168.202.10@731 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../agi/agi-IVR_recording_verification.agi | 16 +++----------- agc_2-X/trunk/www/agc/vicidial.php | 22 +++++++++++++------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/agc_2-X/trunk/agi/agi-IVR_recording_verification.agi b/agc_2-X/trunk/agi/agi-IVR_recording_verification.agi index aa837d1b..fe77561f 100644 --- a/agc_2-X/trunk/agi/agi-IVR_recording_verification.agi +++ b/agc_2-X/trunk/agi/agi-IVR_recording_verification.agi @@ -17,8 +17,8 @@ # automated outbound surveys as well. Feature under development. # # ; 1. the DNIS or inbound number called -# ; 2. record this call(Y|N) -# ; 3. play the recording ID (Y|N) with prompt leading up to it +# ; 2. play the recording ID (Y|N) with prompt leading up to it +# ; 3. record this call(Y|N) # ; 4. ask for a company code(Y|N) with the number of digits in that company code and the prompt # ; 5. ask for a user code(Y|N) with the number of digits in that user code and the prompt # ; 6. ask for the customer phone number(Y|N) with the number of digits in that phone number and the prompt (Y-10-85100001) @@ -169,16 +169,6 @@ if (length($ARGV[0])>1) if ($AGI_output =~ /FILE/) {$AGILOG = '2';} if ($AGI_output =~ /BOTH/) {$AGILOG = '3';} - if ($AGILOG) - { - $agi_string = "Perl Environment Dump:"; &agi_output; - $i=0; - while ($#ARGV >= $i) - { - $agi_string = "$i|$ARGV[$i]"; &agi_output; - $i++; - } - } } } @@ -219,7 +209,7 @@ $phone_number=$callerid; ### allow for VICIDIAL transfer data string "83002*3125551212*10000123*TESTCAMP*ABC*1234*" -if ($extension =~ /^832\d\d\*/) +if ($extension =~ /^832\d\d\*|^833\d\d\*/) { @EXT_vars = split(/\*/, $extension); diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index 7444e53c..f43069bd 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -253,6 +253,7 @@ $no_delete_sessions = '0'; # set to 1 to not delete sessions at logout $volumecontrol_active = '1'; # set to 1 to allow agents to alter volume of channels $PreseT_DiaL_LinKs = '1'; # set to 1 to show a DIAL link for Dial Presets $LogiNAJAX = '1'; # set to 1 to do lookups +$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls" $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen @@ -1789,6 +1790,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var phone_ip = ''; var enable_sipsak_messages = ''; var allow_sipsak_messages = ''; + var HidEMonitoRSessionS = ''; var DiaLControl_auto_HTML = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"Pause\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"Pause\"\"Resume\""; @@ -2044,7 +2046,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var Ctasknum = tasknum_string.replace(regAXFvars, ''); if (Ctasknum.length < 2) {Ctasknum = '83009';} - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + var closerxfercamptail = '_L'; if (closerxfercamptail.length < 3) {closerxfercamptail = 'IVR';} tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; @@ -2308,13 +2310,20 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} {var row_color = '#CCCCFF';} var conv_ct = (loop_ct + conv_start); var channelfieldA = conf_chan_array[conv_ct]; - if (volumecontrol_active!=1) + if ( (HidEMonitoRSessionS==1) && (channelfieldA.match(/68600/)) ) { - live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP"; + var hide_channel=1; } else { - live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP           "; + if (volumecontrol_active!=1) + { + live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP"; + } + else + { + live_conf_HTML = live_conf_HTML + "" + loop_ct + "" + channelfieldA + "HANGUP           "; + } } // var debugspan = document.getElementById("debugbottomspan").innerHTML; @@ -2555,7 +2564,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var Ctasknum = blindxferdialstring.replace(regAXFvars, ''); if (Ctasknum.length < 2) {Ctasknum = '83009';} - var closerxfercamptail = '_L' + document.vicidial_form.xfercode.value; + var closerxfercamptail = '_L'; if (closerxfercamptail.length < 3) {closerxfercamptail = 'IVR';} blindxferdialstring = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; @@ -2646,7 +2655,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} DispO3wayXtrAchannel = redirectXTRAvalue; DispO3wayCalLserverip = redirectserverip; DispO3wayCalLxfernumber = document.vicidial_form.xfernumber.value; - DispO3wayCalLcamptail = document.vicidial_form.xfercode.value; + DispO3wayCalLcamptail = ''; xferredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=" + redirecttype + "&format=text&channel=" + redirectvalue + "&call_server_ip=" + redirectserverip + "&queryCID=" + queryCID + "&exten=" + redirectdestination + "&ext_context=" + ext_context + "&ext_priority=1&extrachannel=" + redirectXTRAvalue + "&lead_id=" + document.vicidial_form.lead_id.value + "&phone_code=" + document.vicidial_form.phone_code.value + "&phone_number=" + document.vicidial_form.phone_number.value+ "&filename=" + taskdebugnote + "&campaign=" + XfeRSelecT.value; @@ -4188,7 +4197,6 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} { XDchannel = DispO3wayXtrAchannel; document.vicidial_form.xfernumber.value = DispO3wayCalLxfernumber; - document.vicidial_form.xfercode.value = DispO3wayCalLcamptail; MDchannel = DispO3waychannel; lastcustserverip = DispO3wayCalLserverip;