small bug fixes and logging changes for inbound and outbound AGI scripts

git-svn-id: svn://192.168.202.10@978 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2008-10-15 08:09:12 +00:00
parent 3df164b645
commit 218888aba6
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -292,7 +292,6 @@ exit;
}
$stmtA = "SELECT count(*) FROM vicidial_live_agents where callerid='$callerid';";
if ($AGILOG) {$agi_string = "|$stmtA|"; &agi_output;}
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;
@@ -304,6 +303,7 @@ while ($sthArows > $rec_count)
$rec_count++;
}
$sthA->finish();
if ($AGILOG) {$agi_string = "$Pseudo_duplicate_count|$stmtA|"; &agi_output;}
if ($Pseudo_duplicate_count > 0)
{
@@ -312,7 +312,6 @@ exit;
}
$stmtA = "SELECT count(*) FROM vicidial_auto_calls where callerid='$callerid' and status IN('LIVE','XFER');";
if ($AGILOG) {$agi_string = "|$stmtA|"; &agi_output;}
$sthA = $dbhA->prepare($stmtA) or die "preparing: ",$dbhA->errstr;
$sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
$sthArows=$sthA->rows;
@@ -324,6 +323,7 @@ while ($sthArows > $rec_count)
$rec_count++;
}
$sthA->finish();
if ($AGILOG) {$agi_string = "$dialplan_duplicate_count|$stmtA|"; &agi_output;}
if ($dialplan_duplicate_count > 0)
{