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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user