pari: branch 2.0 r3716 - in /branches/2.0/config: bulkadd.html js/pbx.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Aug 27 15:12:45 CDT 2008
Author: pari
Date: Wed Aug 27 15:12:45 2008
New Revision: 3716
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3716
Log:
Letting the API take care of host=dynamic when creating new user
Modified:
branches/2.0/config/bulkadd.html
branches/2.0/config/js/pbx.js
Modified: branches/2.0/config/bulkadd.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/bulkadd.html?view=diff&rev=3716&r1=3715&r2=3716
==============================================================================
--- branches/2.0/config/bulkadd.html (original)
+++ branches/2.0/config/bulkadd.html Wed Aug 27 15:12:45 2008
@@ -109,7 +109,6 @@
for( var f = 1 ; f < HEADS.length ; f++ ){
NEW_USERS[ this_user ][ HEADS[f] ] = this_user_details[ f ] ;
}
- NEW_USERS[ this_user ]['host'] = 'dynamic' ;
};
// ASTGUI.debugLog( NEW_USERS , 'parse');
@@ -142,7 +141,6 @@
NEW_USERS[ tmp_nu ]['hassip'] = 'yes';
NEW_USERS[ tmp_nu ]['hasiax'] = 'yes';
NEW_USERS[ tmp_nu ]['secret'] = tmp_nu;
- NEW_USERS[ tmp_nu ]['host'] = 'dynamic';
tmp_user++ ;
t--;
}
Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=3716&r1=3715&r2=3716
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Wed Aug 27 15:12:45 2008
@@ -794,6 +794,9 @@
if(userinfo.mailbox) delete userinfo.mailbox;
+ if(userinfo.hasOwnProperty('hassip') && userinfo['hassip'].isAstTrue() ){
+ x.new_action( 'append', exten, 'host', 'dynamic' );
+ }
for( var d in userinfo ){ if( userinfo.hasOwnProperty(d) ) {
x.new_action( 'append', exten, d, userinfo[d] );
}}
More information about the asterisk-gui-commits
mailing list