diff --git a/agi/agi-VDAD_ALL_outbound.agi b/agi/agi-VDAD_ALL_outbound.agi index 79495c20..3604ef31 100644 --- a/agi/agi-VDAD_ALL_outbound.agi +++ b/agi/agi-VDAD_ALL_outbound.agi @@ -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 = ; @@ -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 = ; diff --git a/bin/AST_send_URL.pl b/bin/AST_send_URL.pl index f2e27af1..cd2ba770 100644 --- a/bin/AST_send_URL.pl +++ b/bin/AST_send_URL.pl @@ -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;";