diff --git a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
index 8d82c6f1..f942a6e3 100644
--- a/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
+++ b/agc_2-X/trunk/agi/agi-VDAD_ALL_inbound.agi
@@ -363,6 +363,7 @@ if ($call_handle_method =~ /^CLOSER/)
$agent_only = $EXT_vars[7]; # optional AGENTDIRECT user to queue call for
}
$CIDlead_id = $parked_by;
+ $fronter_call_seconds = $EXT_vars[8]; # not currently used
$PADlead_id = sprintf("%09s", $parked_by); while (length($PADlead_id) > 9) {chop($PADlead_id);}
# JmmddhhmmssLLLLLLLLL
diff --git a/agc_2-X/trunk/docs/AGENT_API.txt b/agc_2-X/trunk/docs/AGENT_API.txt
index 96988779..03e26a29 100644
--- a/agc_2-X/trunk/docs/AGENT_API.txt
+++ b/agc_2-X/trunk/docs/AGENT_API.txt
@@ -280,7 +280,7 @@ VALUES:
agent_user -
REQUIRED, alphanumeric string for agent user
value -
- REQUIRED, one of these choices: 'NONE','WEBFORM','WEBFORM2','D1_DIAL','D2_DIAL','MESSAGE_ONLY','BALANCE_CHECK'
+ REQUIRED, one of these choices: 'NONE','WEBFORM','WEBFORM2','D1_DIAL','D2_DIAL','D3_DIAL','D4_DIAL','D5_DIAL','MESSAGE_ONLY'
notes -
Optional, the message to be displayed with the timer action
rank -
diff --git a/agc_2-X/trunk/extras/test_VICIDIAL_lead_file.txt b/agc_2-X/trunk/extras/test_VICIDIAL_lead_file.txt
index 04ecc30f..ab1fcd4d 100644
--- a/agc_2-X/trunk/extras/test_VICIDIAL_lead_file.txt
+++ b/agc_2-X/trunk/extras/test_VICIDIAL_lead_file.txt
@@ -1,4 +1,4 @@
-100001|10001|107|1|7275551213|MR|I|Q|SMITH01|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||
+100001|10001|107|1|7275551213|MR|I|Q|SMITH01|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS|1|Southeast||
100002|10002|107|1|7275551213|MR|I|Q|SMITH02|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work!7275551213_61_sister house!7275551214_44_neighbor
100003|10003|107|1|7275551213|MR|I|Q|SMITH03|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work
100004|10004|107|1|7275551213|MR|I|Q|SMITH04|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work!7275551213_61_sister house
diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php
index 12ae4fa4..429126b2 100644
--- a/agc_2-X/trunk/www/agc/vdc_db_query.php
+++ b/agc_2-X/trunk/www/agc/vdc_db_query.php
@@ -4269,7 +4269,7 @@ if ($ACTION == 'VDADcheckINCOMING')
$VDCL_start_call_url = preg_replace('/^VAR/','',$VDCL_start_call_url);
$VDCL_start_call_url = eregi_replace('--A--lead_id--B--',"$lead_id",$VDCL_start_call_url);
$VDCL_start_call_url = eregi_replace('--A--vendor_id--B--',"$vendor_id",$VDCL_start_call_url);
- $VDCL_start_call_url = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$VDCL_start_call_url);
+ $VDCL_start_call_url = eregi_replace('--A--vendor_lead_code--B--',"$vendor_id",$VDCL_start_call_url);
$VDCL_start_call_url = eregi_replace('--A--list_id--B--',"$list_id",$VDCL_start_call_url);
$VDCL_start_call_url = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$VDCL_start_call_url);
$VDCL_start_call_url = eregi_replace('--A--phone_code--B--',"$phone_code",$VDCL_start_call_url);
@@ -4331,15 +4331,42 @@ if ($ACTION == 'VDADcheckINCOMING')
if ($DB > 0) {echo "$VDCL_start_call_url
\n";}
$SCUfile = file("$VDCL_start_call_url");
if ($DB > 0) {echo "$SCUfile[0]
\n";}
- if ( (ereg('mode=callxfer',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) )
+
+ ##### BEGIN special filtering and response for Vtiger account balance function #####
+ $stmt = "SELECT enable_vtiger_integration FROM system_settings;";
+ $rslt=mysql_query($stmt, $link);
+ if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
+ $ss_conf_ct = mysql_num_rows($rslt);
+ if ($ss_conf_ct > 0)
+ {
+ $row=mysql_fetch_row($rslt);
+ $enable_vtiger_integration = $row[0];
+ }
+ if ( ($enable_vtiger_integration > 0) and (ereg('callxfer',$VDCL_start_call_url)) and (ereg('contactwsid',$VDCL_start_call_url)) )
{
$SCUoutput='';
foreach ($SCUfile as $SCUline)
{$SCUoutput .= "$SCUline";}
- $fp = fopen ("./call_url_log.txt", "a");
- fwrite ($fp, "$dispo_call_url\n$SCUoutput\n");
- fclose($fp);
+ # {"result":true,"durationLimit":3071}
+ if (strlen($SCUoutput) > 4)
+ {
+ $SCUresponse = explode('durationLimit',$SCUoutput);
+ $durationLimit = preg_replace('/\D/','',$SCUresponse[1]);
+ $durationLimitSEC = ( ( ($durationLimit + 0) - 3) * 60); # minutes - 3 for 3-minute-warning
+ if ($durationLimitSEC < 5) {$durationLimitSEC = 5;}
+
+ $stmt="UPDATE vicidial_live_agents set external_timer_action='D1_DIAL',external_timer_action_message='3 minute warning for customer',external_timer_action_seconds='$durationLimitSEC' where user='$user';";
+ if ($DB) {echo "$stmt\n";}
+ $rslt=mysql_query($stmt, $link);
+ if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
+ $vla_update_timer = mysql_affected_rows($link);
+
+ $fp = fopen ("./call_url_log.txt", "a");
+ fwrite ($fp, "$VDCL_start_call_url\n$SCUoutput\n$durationLimit|$durationLimitSEC|$vla_update_timer\n");
+ fclose($fp);
+ }
}
+ ##### END special filtering and response for Vtiger account balance function #####
}
}
else
@@ -5586,7 +5613,17 @@ if ($ACTION == 'updateDISPO')
if ($DB > 0) {echo "$dispo_call_url
\n";}
$SCUfile = file("$dispo_call_url");
if ($DB > 0) {echo "$SCUfile[0]
\n";}
- if ( (ereg('mode=callend',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) )
+
+ $stmt = "SELECT enable_vtiger_integration FROM system_settings;";
+ $rslt=mysql_query($stmt, $link);
+ if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
+ $ss_conf_ct = mysql_num_rows($rslt);
+ if ($ss_conf_ct > 0)
+ {
+ $row=mysql_fetch_row($rslt);
+ $enable_vtiger_integration = $row[0];
+ }
+ if ( ($enable_vtiger_integration > 0) and (ereg('mode=callend',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) )
{
$SCUoutput='';
foreach ($SCUfile as $SCUline)
diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php
index 249e5c44..7df5e5ba 100644
--- a/agc_2-X/trunk/www/agc/vicidial.php
+++ b/agc_2-X/trunk/www/agc/vicidial.php
@@ -268,10 +268,11 @@
# 91219-0657 - Set pause code automatically on ReQueue and INBOUND_MAN Dial-Next-Number
# 91228-1339 - Added API "fields update" functions and "timer action" functions
# 100103-1250 - Added 3 more conf-presets, list ID override presets and call start/dispo URLs
+# 100107-0108 - Added dynamic screen size based on login screen browser dimensions
#
-$version = '2.2.0-246';
-$build = '100103-1250';
+$version = '2.2.0-247';
+$build = '100107-0108';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=64;
$one_mysql_log=0;
@@ -280,6 +281,10 @@ require("dbconnect.php");
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
+if (isset($_GET["JS_browser_width"])) {$JS_browser_width=$_GET["JS_browser_width"];}
+ elseif (isset($_POST["JS_browser_width"])) {$JS_browser_width=$_POST["JS_browser_width"];}
+if (isset($_GET["JS_browser_height"])) {$JS_browser_height=$_GET["JS_browser_height"];}
+ elseif (isset($_POST["JS_browser_height"])) {$JS_browser_height=$_POST["JS_browser_height"];}
if (isset($_GET["phone_login"])) {$phone_login=$_GET["phone_login"];}
elseif (isset($_POST["phone_login"])) {$phone_login=$_POST["phone_login"];}
if (isset($_GET["phone_pass"])) {$phone_pass=$_GET["phone_pass"];}
@@ -405,6 +410,7 @@ $disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from t
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
+$stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window
$BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500
$BROWSER_WIDTH = 770; # set to the minimum browser width, default=770
$MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6
@@ -417,38 +423,6 @@ $SIDEBAR_COLOR = '#F6F6F6';
# $agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks
#$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session
-### SCREEN WIDTH AND HEIGHT CALCULATIONS ###
-### DO NOT EDIT! ###
-$MASTERwidth=($BROWSER_WIDTH - 340);
-$MASTERheight=($BROWSER_HEIGHT - 200);
-if ($MASTERwidth < 430) {$MASTERwidth = '430';}
-if ($MASTERheight < 300) {$MASTERheight = '300';}
-
-$CAwidth = ($MASTERwidth + 340); # 770 - cover all (none-in-session, customer hunngup, etc...)
-$SBwidth = ($MASTERwidth + 331); # 761 - SideBar starting point
-$MNwidth = ($MASTERwidth + 330); # 760 - main frame
-$XFwidth = ($MASTERwidth + 320); # 750 - transfer/conference
-$HCwidth = ($MASTERwidth + 310); # 740 - hotkeys and callbacks
-$CQwidth = ($MASTERwidth + 300); # 730 - calls in queue listings
-$AMwidth = ($MASTERwidth + 270); # 700 - preset-dial links
-$SCwidth = ($MASTERwidth + 230); # 670 - live call seconds counter, sidebar link
-$MUwidth = ($MASTERwidth + 180); # 610 - agent mute
-$SSwidth = ($MASTERwidth + 176); # 606 - scroll script
-$SDwidth = ($MASTERwidth + 170); # 600 - scroll script, customer data and calls-in-session
-$HKwidth = ($MASTERwidth + 20); # 450 - Hotkeys button
-$HSwidth = ($MASTERwidth + 1); # 431 - Header spacer
-$CLwidth = ($MASTERwidth - 160); # 270 - Calls in queue link
-
-$CQheight = ($MASTERheight + 140); # 440 - Calls in queue section
-$SLheight = ($MASTERheight + 122); # 422 - SideBar link, Calls in queue link
-$HKheight = ($MASTERheight + 105); # 405 - HotKey active Button
-$AMheight = ($MASTERheight + 100); # 400 - Agent mute and preset dial links
-$MBheight = ($MASTERheight + 65); # 365 - Manual Dial Buttons
-$CBheight = ($MASTERheight + 50); # 350 - Agent Callback, pause code, volume control Buttons and agent status
-$SSheight = ($MASTERheight + 31); # 331 - script content
-$HTheight = ($MASTERheight + 10); # 310 - transfer frame, callback comments and hotkey
-$BPheight = ($MASTERheight - 250); # 50 - bottom buffer, Agent Xfer Span
-
$US='_';
$CL=':';
@@ -467,12 +441,14 @@ else {$server_port = "$CL$server_port";}
$agcPAGE = "$HTTPprotocol$server_name$server_port$script_name";
$agcDIR = eregi_replace('vicidial.php','',$agcPAGE);
+
header ("Content-type: text/html; charset=utf-8");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
echo "\n";
echo "
| \n"; echo "\n"; echo " |