espiceland: branch 2.0 r5118 - /branches/2.0/config/js/sip.js
    SVN commits to the Asterisk-GUI project 
    asterisk-gui-commits at lists.digium.com
       
    Thu Nov 18 09:19:03 CST 2010
    
    
  
Author: espiceland
Date: Thu Nov 18 09:18:59 2010
New Revision: 5118
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5118
Log:
Split comma-separated IP ranges into separate localnet lines in sip.conf.
Modified:
    branches/2.0/config/js/sip.js
Modified: branches/2.0/config/js/sip.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/sip.js?view=diff&rev=5118&r1=5117&r2=5118
==============================================================================
--- branches/2.0/config/js/sip.js (original)
+++ branches/2.0/config/js/sip.js Thu Nov 18 09:18:59 2010
@@ -89,7 +89,14 @@
 			}
 			x.new_action('delete', cat , fld , '') ;
 		}else{
-			x.new_action('update', cat , fld , val) ;
+			if(fld == "localnet"){
+				x.new_action('delete', cat , fld , '') ;
+				val.split(',').each(function(item){
+					x.new_action('append', cat , fld , item) ;
+				});
+			}else{
+				x.new_action('update', cat , fld , val) ;
+			}
 		}
 	});
 	x.new_action('delete', cat , 'disallow', '' ) ;
    
    
More information about the asterisk-gui-commits
mailing list