pari: trunk r1679 - /trunk/config/digital.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Oct 12 09:27:58 CDT 2007


Author: pari
Date: Fri Oct 12 09:27:57 2007
New Revision: 1679

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1679
Log:
create applyzap.conf if it does not already exist

Modified:
    trunk/config/digital.html

Modified: trunk/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/digital.html?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- trunk/config/digital.html (original)
+++ trunk/config/digital.html Fri Oct 12 09:27:57 2007
@@ -231,10 +231,12 @@
 		
 		var applyZapParse = function(n){ // read applyzap.conf
 			if( ASTGUI.checkType.isString(n) &&  n=="ERROR: CONFIG FILE NOT FOUND" ){ 
-				// applyzap.conf not found - probably running this page for the first time or never had digital-cards before
+				// applyzap.conf not found - probably running this page for the first time 
 				// touch applyzap.conf - we need to have a file to be a able to write to it
 				oldSpanCount = 0;
 				oldLoadZone ='us';
+				 setTimeout( function(){ parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/applyzap.conf", function(){} ); } , 100);
+
 			}else{
 				try{
 					for (var i=0; i < n['general'].length; i++){




More information about the asterisk-gui-commits mailing list