Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
ekaftan wrote:seaq wrote:right now i've replaced the AST_VDremote_agents.pl script with the 2.0.3 version but i'm not sure about problems doing this....
Andres,
Thanks for this post, I did the same as you did and now its working.
ekaftan wrote:ekaftan wrote:seaq wrote:right now i've replaced the AST_VDremote_agents.pl script with the 2.0.3 version but i'm not sure about problems doing this....
Andres,
Thanks for this post, I did the same as you did and now its working.
Following up to myself... I tried the script from 2.0.3 but dial statuses on leads were not updated (they got marked called, but stayed as NEW).
I then fixed AST_VDremote script with this patch:
diff -u AST_VDremote_agents.pl /usr/share/astguiclient/AST_VDremote_agents.pl
--- AST_VDremote_agents.pl 2007-12-07 08:04:41.000000000 -0300
+++ /usr/share/astguiclient/AST_VDremote_agents.pl 2008-01-03 14:20:15.000000000 -0300
@@ -241,12 +241,14 @@
##### grab number of calls today in this campaign and increment
$stmt="SELECT calls_today FROM vicidial_live_agents WHERE extension LIKE "R/%";";
- $rslt=mysql_query($stmt, $link);
- if ($DB) {echo "$stmt\n";}
- $vla_cc_ct = mysql_num_rows($rslt);
+ $sthA = $dbhA->prepare($stmt) or die "preparing: ",$dbhA->errstr;
+ $sthA->execute or die "executing: $stmtA ", $dbhA->errstr;
+ $sthArows=$sthA->rows;
+ if ($DB) { print "$stmt\n";}
+ $vla_cc_ct = $sthArows;
if ($vla_cc_ct > 0)
{
- $row=mysql_fetch_row($rslt);
+ $row = $sthA->fetchrow;
$calls_today =$row[0];
}
else
Remote agents now work, but call status on the list still dont get updated. What script should update the status?
thanks.
--- /usr/share/astguiclient/AST_VDremote_agents.pl 2008-02-04 09:46:36.000000000 -0500
+++ astguiclient-trunk/trunk/bin/AST_VDremote_agents.pl 2008-02-04 06:33:43.000000000 -0500
@@ -241,28 +241,16 @@
##### grab number of calls today in this campaign and increment
$stmt="SELECT calls_today FROM vicidial_live_agents WHERE extension LIKE \"R/%\";";
- ### $rslt=mysql_query($stmt, $link);
-
- # if ($DB) { print "$stmt\n";}
- # $vla_cc_ct = mysql_num_rows($rslt);
- # if ($vla_cc_ct > 0)
- # {
- # $row=mysql_fetch_row($rslt);
- # $calls_today =$row[0];
- # }
- #else
- # {$calls_today ='0';}
-
- $sthAX = $dbhA->prepare($stmt) or die "preparing: ",$dbhA->errstr;
- $sthAX->execute or die "executing: $stmt ", $dbhA->errstr;
- $vla_cc_ct=$sthAX->rows;
+ $rslt=mysql_query($stmt, $link);
+ if ($DB) {print "$stmt\n";}
+ $vla_cc_ct = mysql_num_rows($rslt);
if ($vla_cc_ct > 0)
- { # @rowAX = $sthAX->fetchrow_array;
- #$calls_today = "$rowAX[0]";
- }else
- { $calls_today ='0'; }
- $sthAX->finish();
-
+ {
+ $row=mysql_fetch_row($rslt);
+ $calls_today =$row[0];
+ }
+ else
+ {$calls_today ='0';}
$calls_today++;
$stmtA = "UPDATE vicidial_live_agents set status='INCALL', last_call_time='$SQLdate',comments='REMOTE',calls_today='$calls_today' where server_ip='$server_ip' and status IN('QUEUE') and extension LIKE \"R/%\";";
Users browsing this forum: No registered users and 114 guests