Fixed small issues with outbound AGI script and send url perl script
git-svn-id: svn://192.168.202.10@2223 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -111,6 +111,7 @@
|
||||
# 140312-2112 - Added CALLID as recording filename variable
|
||||
# 140617-1946 - Added single-digit change to text for TTS
|
||||
# 141211-1635 - Added cpd_unknown_action campaign option and list_id added to AST_send_URL calls
|
||||
# 141219-1219 - Fixed issue related to QM logging
|
||||
#
|
||||
|
||||
$script = 'agi-VDAD_ALL_outbound.agi';
|
||||
@@ -2582,8 +2583,6 @@ while ($drop_timer <= $DROP_TIME)
|
||||
$dbhP=$dbhA; $mysql_count='01038'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDAD XFER : |$affected_rows|update of vac table: $callerid\n|$stmtA|"; &agi_output;}
|
||||
|
||||
$dbhA->disconnect();
|
||||
|
||||
if ($enable_queuemetrics_logging > 0)
|
||||
{
|
||||
$dbhB = DBI->connect("DBI:mysql:$queuemetrics_dbname:$queuemetrics_server_ip:3306", "$queuemetrics_login", "$queuemetrics_pass")
|
||||
@@ -2672,6 +2671,8 @@ while ($drop_timer <= $DROP_TIME)
|
||||
}
|
||||
}
|
||||
|
||||
$dbhA->disconnect();
|
||||
|
||||
if ($AGILOG) {$agi_string = "exiting the VDAD app, transferring call to $VDADconf_exten"; &agi_output;}
|
||||
print "SET CONTEXT $ext_context\n";
|
||||
$result = <STDIN>;
|
||||
@@ -3189,8 +3190,6 @@ while ($drop_timer <= $DROP_TIME)
|
||||
$dbhP=$dbhA; $mysql_count='01045'; $MEL_aff_rows=$affected_rows; &mysql_error_logging;
|
||||
if ($AGILOG) {$agi_string = "-- VDAD XFER REMOTE: |$affected_rows|update of vac table: $callerid\n|$stmtA|"; &agi_output;}
|
||||
|
||||
$dbhA->disconnect();
|
||||
|
||||
if ($enable_queuemetrics_logging > 0)
|
||||
{
|
||||
$dbhB = DBI->connect("DBI:mysql:$queuemetrics_dbname:$queuemetrics_server_ip:3306", "$queuemetrics_login", "$queuemetrics_pass")
|
||||
@@ -3279,6 +3278,8 @@ while ($drop_timer <= $DROP_TIME)
|
||||
}
|
||||
}
|
||||
|
||||
$dbhA->disconnect();
|
||||
|
||||
if ($AGILOG) {$agi_string = "exiting the VDAD app, transferring call to $VDADremDIALstr"; &agi_output;}
|
||||
print "SET CONTEXT $ext_context\n";
|
||||
$result = <STDIN>;
|
||||
|
||||
+2
-1
@@ -17,6 +17,7 @@
|
||||
# 121120-0925 - Added QM socket-send functionality
|
||||
# 130402-2307 - Added user_group variable
|
||||
# 141211-1742 - Added list override for no-agent url
|
||||
# 141219-1218 - url logging fix for some inputs
|
||||
#
|
||||
|
||||
$|++;
|
||||
@@ -638,7 +639,7 @@ if (length($lead_id) > 0)
|
||||
|
||||
### insert a new url log entry
|
||||
$SQL_log = "$parse_url";
|
||||
$SQL_log =~ s/;|\|//gi;
|
||||
$SQL_log =~ s/;|\||\\//gi;
|
||||
$stmtA = "INSERT INTO vicidial_url_log SET uniqueid='$uniqueid',url_date='$now_date',url_type='$url_function',url='$SQL_log',url_response='';";
|
||||
$affected_rows = $dbhA->do($stmtA);
|
||||
$stmtB = "SELECT LAST_INSERT_ID() LIMIT 1;";
|
||||
|
||||
Reference in New Issue
Block a user