added vicidial_live_agents and vicidial_auto_calls entries and updating for manual dialing
git-svn-id: svn://192.168.202.10@415 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -109,10 +109,11 @@
|
||||
# 60821-1600 - Added ability to omit the phone code on vicidial lead dialing
|
||||
# 60821-1647 - Added ability to not delete sessions at logout
|
||||
# 60906-1124 - Added lookup and sending of callback data for CALLBK calls
|
||||
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
|
||||
#
|
||||
|
||||
$version = '2.0.37';
|
||||
$build = '60906-1124';
|
||||
$version = '2.0.38';
|
||||
$build = '61128-2229';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -572,6 +573,10 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$stmt = "INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$MqueryCID','Exten: $Ndialstring','Context: $ext_context','Channel: $local_DEF$conf_exten$local_AMP$ext_context$Local_persist','Priority: 1','Callerid: $CIDstring','Timeout: $Local_dial_timeout','','','','');";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmt = "INSERT INTO vicidial_auto_calls (server_ip,campaign_id,status,lead_id,callerid,phone_code,phone_number,call_time,call_type) values('$server_ip','$campaign','INCALL','$lead_id','$CIDstring','$phone_code','$phone_number','$NOW_TIME','OUT')";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
$comments = eregi_replace("\r",'',$comments);
|
||||
@@ -701,6 +706,10 @@ if ($ACTION == 'manDiaLonly')
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmt = "INSERT INTO vicidial_auto_calls (server_ip,campaign_id,status,lead_id,callerid,phone_code,phone_number,call_time,call_type) values('$server_ip','$campaign','INCALL','$lead_id','$CIDstring','$phone_code','$phone_number','$NOW_TIME','OUT')";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "$MqueryCID\n";
|
||||
}
|
||||
}
|
||||
@@ -792,6 +801,10 @@ if ($stage == "start")
|
||||
echo "LOG NOT ENTERED\n";
|
||||
}
|
||||
|
||||
$stmt = "UPDATE vicidial_auto_calls SET uniqueid='$uniqueid' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
# ##### insert log into call_log for manual VICIDiaL call
|
||||
# $stmt = "INSERT INTO call_log (uniqueid,channel,server_ip,extension,number_dialed,caller_code,start_time,start_epoch) values('$uniqueid','$channel','$server_ip','$exten','$phone_code$phone_number','MD $user $lead_id','$NOW_TIME','$StarTtime')";
|
||||
# if ($DB) {echo "$stmt\n";}
|
||||
@@ -860,6 +873,16 @@ if ($stage == "end")
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmt = "UPDATE vicidial_live_agents set status='PAUSED',lead_id='',uniqueid=0,callerid='',channel='',call_server_ip='',last_call_finish='$NOW_TIME' where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "DELETE from vicidial_auto_calls lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
$stmt = "UPDATE vicidial_live_agents set status='PAUSED',lead_id='',uniqueid=0,callerid='',channel='',call_server_ip='',last_call_finish='$NOW_TIME' where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
@@ -129,6 +129,7 @@
|
||||
# 61004-1729 - Add ability to control volume per channel in "calls in this session"
|
||||
# 61122-1341 - Added vicidial_user_groups allowed_campaigns restrictions
|
||||
# 61122-1523 - Added more SCRIPT variables
|
||||
# 61128-2229 - Added vicidial_live_agents and vicidial_auto_calls manual dial entries
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -174,8 +175,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
|
||||
|
||||
$forever_stop=0;
|
||||
|
||||
$version = '2.0.102';
|
||||
$build = '61122-1523';
|
||||
$version = '2.0.103';
|
||||
$build = '61128-2229';
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
@@ -969,8 +970,11 @@ else
|
||||
{
|
||||
print "<!-- campaign is set to manual dial: $auto_dial_level -->\n";
|
||||
|
||||
|
||||
|
||||
$stmt="INSERT INTO vicidial_live_agents (user,server_ip,conf_exten,extension,status,lead_id,campaign_id,uniqueid,callerid,channel,random_id,last_call_time,last_update_time,last_call_finish,user_level) values('$VD_login','$server_ip','$session_id','$SIP_user','PAUSED','','$VD_campaign','','','','$random','$NOW_TIME','$tsNOW_TIME','$NOW_TIME','$user_level');";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$affected_rows = mysql_affected_rows($link);
|
||||
print "<!-- new vicidial_live_agents record inserted: |$affected_rows| -->\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user