From f0e29dd07b5b044b7f261e2df450493b97bc01b0 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 17 Dec 2009 16:13:00 +0000 Subject: [PATCH] Fixed small bug in voicemail update script git-svn-id: svn://192.168.202.10@1282 3d104415-ff17-0410-8863-d5cf3c621b8a --- bin/AST_vm_update.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/AST_vm_update.pl b/bin/AST_vm_update.pl index 54897b25..e1df04fb 100644 --- a/bin/AST_vm_update.pl +++ b/bin/AST_vm_update.pl @@ -168,8 +168,8 @@ $t = new Net::Telnet (Port => 5038, Prompt => '/.*[\$%#>] $/', Output_record_separator => '',); #$fh = $t->dump_log("$telnetlog"); # uncomment for telnet log - if (length($ASTmgrUSERNAMEsend) > 3) {$telnet_login = $ASTmgrUSERNAMEsend;} - else {$telnet_login = $ASTmgrUSERNAME;} +if (length($ASTmgrUSERNAMEsend) > 3) {$telnet_login = $ASTmgrUSERNAMEsend;} +else {$telnet_login = $ASTmgrUSERNAME;} $t->open("$telnet_host"); $t->waitfor('/[01]\n$/'); # print login @@ -280,7 +280,7 @@ if ($active_voicemail_server > 0) } else { - $stmtA = "UPDATE vicidial_voicemail set messages='$NEW_messages[$i]',old_messages='$OLD_messages[$i]' where voicemail_id='$voicemail_id';"; + $stmtA = "UPDATE vicidial_voicemail set messages='$NEW_messages[$i]',old_messages='$OLD_messages[$i]' where voicemail_id='$PTvoicemail_ids[$i]';"; if($DB){print STDERR "\n|$stmtA|\n";} $affected_rows = $dbhA->do($stmtA); # or die "Couldn't execute query:|$stmtA|\n"; }