bkruse: trunk r1141 - /trunk/config/ringgroups.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Jun 21 16:51:45 CDT 2007


Author: bkruse
Date: Thu Jun 21 16:51:44 2007
New Revision: 1141

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1141
Log:
Fixed the problem where if ring groups are defined, then deleted, it still picks them up and leaves the GoTo in the default context.

Modified:
    trunk/config/ringgroups.html

Modified: trunk/config/ringgroups.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/ringgroups.html?view=diff&rev=1141&r1=1140&r2=1141
==============================================================================
--- trunk/config/ringgroups.html (original)
+++ trunk/config/ringgroups.html Thu Jun 21 16:51:44 2007
@@ -137,6 +137,11 @@
 function delete_rg(g){
 	if(!confirm("Are you sure ?")){ return true; }
 	var uri = build_action('delcat', 0, RG_FORMAT+g, "", "");
+	/* If we made a goto extension in default, delete the reference. */
+	if(ringgroups[RG_EDITING].rgExten){
+		var rlex = ringgroups[RG_EDITING].rgExten + ',1,Goto(' + RG_FORMAT+RG_EDITING + '|s|1)' ;
+		uri += build_action('delete', 1, specialcontext, "exten", "", rlex); 
+	}
 	makerequest('u','extensions.conf', uri, function(t){
 		delete ringgroups[g];
 		clear_table();




More information about the asterisk-gui-commits mailing list