bkruse: branch aadk r1140 - /branches/aadk/config/ringgroups.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Jun 21 16:50:57 CDT 2007
Author: bkruse
Date: Thu Jun 21 16:50:57 2007
New Revision: 1140
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1140
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:
branches/aadk/config/ringgroups.html
Modified: branches/aadk/config/ringgroups.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/ringgroups.html?view=diff&rev=1140&r1=1139&r2=1140
==============================================================================
--- branches/aadk/config/ringgroups.html (original)
+++ branches/aadk/config/ringgroups.html Thu Jun 21 16:50:57 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