fixed closer-type lookup in manager_send.php

git-svn-id: svn://192.168.202.10@705 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2007-11-03 20:00:50 +00:00
parent 149f4faa89
commit ccec6e72f0
+5 -1
View File
@@ -459,7 +459,11 @@ if ($ACTION=="RedirectVD")
else
{
if (strlen($call_server_ip)>6) {$server_ip = $call_server_ip;}
if (eregi("(CLOSER|BLEND|INBND|_C$|_B$|_I$)",$campaign))
$stmt = "select count(*) from vicidial_campaigns where campaign_id='$campaign' and campaign_allow_inbound='Y';";
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
if ($row[0] > 0)
{
$stmt = "UPDATE vicidial_closer_log set end_epoch='$StarTtime', length_in_sec='$secondS',status='XFER' where lead_id='$lead_id' order by start_epoch desc limit 1;";
if ($format=='debug') {echo "\n<!-- $stmt -->";}