pari: branch pari/dahdi_support r4444 - /team/pari/dahdi_support/config/js/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Jan 16 15:19:57 CST 2009
Author: pari
Date: Fri Jan 16 15:19:56 2009
New Revision: 4444
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4444
Log:
Run dahdi_genconf if /etc/dahdi/system.conf is missing
Modified:
team/pari/dahdi_support/config/js/index.js
team/pari/dahdi_support/config/js/pbx.js
Modified: team/pari/dahdi_support/config/js/index.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/pari/dahdi_support/config/js/index.js?view=diff&rev=4444&r1=4443&r2=4444
==============================================================================
--- team/pari/dahdi_support/config/js/index.js (original)
+++ team/pari/dahdi_support/config/js/index.js Fri Jan 16 15:19:56 2009
@@ -282,6 +282,7 @@
sessionData.directories.script_detectdahdi = 'sh ' + sessionData.directories.scripts + 'detectdahdi.sh';
sessionData.directories.app_DahdiScan = 'dahdi_scan > ' + sessionData.directories.asteriskConfig + ASTGUI.globals.dahdiScanOutput ;
+ sessionData.directories.app_dahdi_genconf = 'dahdi_genconf'; // generates new /etc/dahdi/system.conf
sessionData.directories.app_mISDNscan = 'misdn-init scan' ;
sessionData.directories.app_flashupdate = 'flashupdate' ;
},
Modified: team/pari/dahdi_support/config/js/pbx.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/pari/dahdi_support/config/js/pbx.js?view=diff&rev=4444&r1=4443&r2=4444
==============================================================================
--- team/pari/dahdi_support/config/js/pbx.js (original)
+++ team/pari/dahdi_support/config/js/pbx.js Fri Jan 16 15:19:56 2009
@@ -190,7 +190,12 @@
var s = $.ajax({ url: ASTGUI.paths.rawman+'?action=getconfig&filename=' + ASTGUI.globals.dahdiIncludeFile , async: false }).responseText;
if( s.contains('Response: Error') && s.contains('Message: Config file not found') ){
sessionData.continueParsing = false ;
- runScript_detectdahdi();
+ ASTGUI.systemCmd( sessionData.directories.app_dahdi_genconf , function(){
+ if( sessionData.DEBUG_MODE ){
+ alert( 'ran ' + sessionData.directories.app_dahdi_genconf + ' \n Click OK to Reload' );
+ }
+ window.location.reload() ;
+ });
return;
}else{
var q = context2json({ configFile_output:s, context: 'general', usf:0 });
More information about the asterisk-gui-commits
mailing list