fix for FastAGI_log parking manual dial calls

git-svn-id: svn://192.168.202.10@1346 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2010-02-24 17:31:37 +00:00
parent 3e8eeaaa11
commit 585e90b0df
4 changed files with 567 additions and 507 deletions
+536 -498
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -135,12 +135,12 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
echo "Invalid Username/Password: |$user|$pass|\n";
exit;
}
else
else
{
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
+20 -6
View File
@@ -6939,12 +6939,12 @@ if ($ACTION == 'CALLSINQUEUEgrab')
}
else
{
$stmt="UPDATE vicidial_auto_calls set agent_grab=\"$user\" where auto_call_id='$stage' and agent_grab='' and status='LIVE';";
$stmtU="UPDATE vicidial_auto_calls set agent_grab=\"$user\" where auto_call_id='$stage' and agent_grab='' and status='LIVE';";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$rslt=mysql_query($stmtU, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00234',$user,$server_ip,$session_name,$one_mysql_log);}
$affected_rows = mysql_affected_rows($link);
if ($affected_rows > 0)
$VACaffected_rows = mysql_affected_rows($link);
if ($VACaffected_rows > 0)
{
$stmt="SELECT call_time,campaign_id,uniqueid,phone_number,lead_id,queue_priority,call_type from vicidial_auto_calls where auto_call_id='$stage';";
$rslt=mysql_query($stmt, $link);
@@ -6969,13 +6969,27 @@ if ($ACTION == 'CALLSINQUEUEgrab')
}
echo "SUCCESS: Call $stage grabbed for $user";
exit;
}
else
{
echo "ERROR: Call $stage could not be grabbed for $user\n";
exit;
}
$stmtD="SELECT * from vicidial_auto_calls where auto_call_id='$stage';";
$rslt=mysql_query($stmtD, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
if ($rslt) {$DEBUGvac_count = mysql_num_rows($rslt);}
if ($DEBUGvac_count > 0)
{
$row=mysql_fetch_row($rslt);
if ($WeBRooTWritablE > 0)
{
$fp = fopen ("./vicidial_debug.txt", "a");
fwrite ($fp, "$NOW_TIME|GRAB_CALL |$stmtU|$VACaffected_rows|$stmtD|$row[0]|$row[1]|$row[2]|$row[3]|$row[4]|$row[5]|$row[6]|$row[7]|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|$row[14]|$row[15]|$row[16]|$row[17]|$row[18]|\n");
fclose($fp);
}
}
exit;
}
}
+9 -1
View File
@@ -2011,7 +2011,8 @@ else
$b64_callerid = base64_encode($outbound_cid);
$b64_protocol = base64_encode($protocol);
$webphone_content = "<iframe src=\"$webphone_url?phone_login=$b64_phone_login&phone_login=$b64_phone_login&phone_pass=$b64_phone_pass&server_ip=$b64_server_ip&callerid=$b64_callerid&protocol=$b64_protocol\" style=\"width:200;height:500;background-color:transparent;\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\" id=\"webphone\" name=\"webphone\" width=\"200\" height=\"500\" STYLE=\"z-index:17\"> </iframe>";
$WebPhonEurl = "$webphone_url?phone_login=$b64_phone_login&phone_login=$b64_phone_login&phone_pass=$b64_phone_pass&server_ip=$b64_server_ip&callerid=$b64_callerid&protocol=$b64_protocol";
$webphone_content = "<iframe src=\"$WebPhonEurl\" style=\"width:200;height:500;background-color:transparent;\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\" id=\"webphone\" name=\"webphone\" width=\"200\" height=\"500\" STYLE=\"z-index:17\"> </iframe>";
}
##### grab the campaign_weight and number of calls today on that campaign for the agent
@@ -2810,6 +2811,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
var timer_action_message='';
var timer_action_seconds='';
var is_webphone='<?php echo $is_webphone ?>';
var WebPhonEurl='<?php echo $WebPhonEurl ?>';
var pause_code_counter=1;
var agent_call_log_view='<?php echo $agent_call_log_view ?>';
var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\" Pause \"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
@@ -10078,6 +10080,12 @@ else
{
NoneInSession();
document.getElementById("NoneInSessionLink").innerHTML = "<a href=\"#\" onclick=\"NoneInSessionCalL();return false;\">Call Agent Webphone -></a>";
var WebPhonEtarget = 'webphonewindow';
// WebPhonEwin =window.open(WebPhonEurl, WebPhonEtarget,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=180,height=270');
// WebPhonEwin.blur();
}
VICIDiaL_closer_login_checked = 1;
}