pari: branch 2.0 r4274 - /branches/2.0/config/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Dec 3 17:27:57 CST 2008


Author: pari
Date: Wed Dec  3 17:27:57 2008
New Revision: 4274

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4274
Log:

 Fix : AA50-1704 - [PRD-450] Upgrade Polycom firmware through GUI


Added:
    branches/2.0/config/update_polycomfirmware.html
Modified:
    branches/2.0/config/flashupdate.html

Modified: branches/2.0/config/flashupdate.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/flashupdate.html?view=diff&rev=4274&r1=4273&r2=4274
==============================================================================
--- branches/2.0/config/flashupdate.html (original)
+++ branches/2.0/config/flashupdate.html Wed Dec  3 17:27:57 2008
@@ -24,7 +24,7 @@
 
 <div style='display:none;' class='nocf' id='nocf'> You need a&nbsp;&nbsp;<b>CompactFlash&reg;</b>&nbsp;&nbsp;to use this feature </div>
 
-<table id='mainDiv' style='display:none;' align=center width='95%'>
+<table id='mainDiv' align=center width='95%'>
 <TR>
 	<TD><div class='lite_Heading'> Update Appliance Firmware </div></TD>
 </TR>
@@ -32,6 +32,7 @@
 	<td align=center style='padding-top:30px;'>
 		<span id='span_current_fwversion'></span>
 		<span id='check_forNewFirmwareVersions_button' style='display:none' class='guiButton' onclick='check_forNewFirmwareVersions()'> Check for new Firmware versions </span>
+		<div><A href='update_polycomfirmware.html'>Update Polycom firmware</A></div>
 	</td>
 </tr>
 <tr>

Added: branches/2.0/config/update_polycomfirmware.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/update_polycomfirmware.html?view=auto&rev=4274
==============================================================================
--- branches/2.0/config/update_polycomfirmware.html (added)
+++ branches/2.0/config/update_polycomfirmware.html Wed Dec  3 17:27:57 2008
@@ -1,0 +1,111 @@
+<!--
+ * Asterisk GUI - update polycom firmware on AA50
+ *
+ * Pari Nannapaneni <pari at digium.com>
+ * 
+ * Copyright (C) 2008, Digium, Inc.
+ * All Rights Reserved.
+ *
+-->
+<script src="js/jquery.js"></script>
+<script src="js/astman.js"></script>
+<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
+<style type="text/css">
+
+</style>
+<script>
+
+var localajaxinit = function(){
+
+};
+
+var update_firmware = function(){
+	parent.ASTGUI.dialog.waitWhile(' Downloading Firmware ... <BR> This process might take several minutes depending on your download speed.');
+
+	var checkAndUpdateOutPut = function(){
+		var tmp = ASTGUI.loadHTML(sessionData.directories.output_SysInfo);
+		//var tmp = ASTGUI.loadHTML('./sysinfo_output.html');
+		if( tmp.contains('**Completed**') ){
+			try{
+				alert('Finished updating firmware !');
+				return;
+			}finally{
+				parent.ASTGUI.dialog.hide();
+				window.location.reload();
+			}
+		}
+
+		var tmp_files = tmp.split('\n');
+		var DOWNLOADFILES = [];
+		for( var i=0; i < tmp_files.length ; i++){
+
+			if( tmp_files[i].trim() == '' )
+				continue;
+
+			DOWNLOADFILES.push( tmp_files[i] );
+		}
+
+		var statusmsg = '';
+		if( DOWNLOADFILES.length == 1 ){
+			statusmsg = 'Downloading ' + DOWNLOADFILES[0] ;
+		}else{
+			var downloaded_Files = ASTGUI.cloneObject(DOWNLOADFILES);
+			downloaded_Files.pop();
+			statusmsg = 'Downloaded ' + downloaded_Files.join("<BR>Downloaded") + " <BR>Downloading " + DOWNLOADFILES[ DOWNLOADFILES.length -1 ] ;
+		}
+
+		parent.ASTGUI.dialog.waitWhile(statusmsg);
+	};
+	var cmd = 'update_phoneprov';
+
+	if( ASTGUI.getFieldValue('fmarchivename') ){
+		cmd = cmd + ' ' + ASTGUI.getFieldValue('fmarchivename');
+	}
+
+	if( ASTGUI.getFieldValue('brarchivename') ){
+		cmd = cmd + ' ' + ASTGUI.getFieldValue('brarchivename');
+	}
+
+	parent.ASTGUI.systemCmd( cmd, function(){} );
+	setInterval( checkAndUpdateOutPut, 4000 );
+
+};
+
+
+</script>
+<body bgcolor="EFEFEF">
+<div class="iframeTitleBar"> 
+	Update Polycom Firmware
+	<span style="cursor: pointer; cursor: hand;" onclick="window.location.reload();" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span>
+</div>
+
+<table align=center width='95%'>
+	<tr>
+		<td colspan=2 align='center'>
+			<div class='lite_Heading'> Update Appliance Firmware </div>
+		</td>
+	</tr>
+	<tr>	<td colspan=2 align='center' height=20></td></tr>
+	<tr>
+		<td valign=top align=right>Firmware Archive Name :</td>
+		<td> <input id="fmarchivename" size=20 value="spip_ssip_3_1_1.tar.gz"></td>
+	</tr>
+	<tr>	<td colspan=2 align='center' height=20></td></tr>
+	<tr>
+		<td valign=top align=right>Bootrom Archive Name :</td>
+		<td> <input id="brarchivename" size=20 value="spip_ssip_BootROM_4_1_2.tar.gz"></td>
+	</tr>
+	<tr>	<td colspan=2 align='center' height=20></td></tr>
+	<tr>
+		<td colspan=2 align='center'>
+			<span class='guiButton' onclick='update_firmware()'> Download new Firmware </span>
+		</td>
+	</tr>
+	<tr>	<td colspan=2 align='center' height=20></td></tr>
+	<tr>	<td colspan=2 align='center' height=20>
+			Note: get the latest Archive names from <A target='_blank' href="http://downloads.digium.com/pub/polycom/firmware">here</A>
+		</td>
+	</tr>
+</table>
+
+</body>




More information about the asterisk-gui-commits mailing list