pari: trunk r171 - /trunk/config/menus.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Dec 18 13:40:18 MST 2006


Author: pari
Date: Mon Dec 18 14:40:18 2006
New Revision: 171

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=171
Log:
Bug fix for - bug 0008589 : 'Goto Exten Fails when used as a step in Voice Menus', this fix might not show your existing config files properly - so if you already have a couple of voicemenus setup with the GUI you might have to edit your existing config files - like change your 'exten = s,3,Goto(301|1)'  to  'exten = s,3,Goto(default|301|1)' 

Modified:
    trunk/config/menus.html

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=171&r1=170&r2=171
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Mon Dec 18 14:40:18 2006
@@ -97,7 +97,7 @@
 	if( temp[2].match("Goto") && !temp[2].match("voicemenu-")  ){
 		var tmp = temp[2].split('(');
 		var tmp1 = tmp[1].split('|');
-		return "Goto Exten '"+ tmp1[0] + "'";
+		return "Goto Exten '"+ tmp1[1] + "'";
 	}
 	
 	if( temp[2].match("Hangup") )
@@ -132,7 +132,7 @@
 		var tmp = menustring.split('(');
 		var tmp1 = tmp[1].split('|');
 		for(y=0; y < $(my_field_options).options.length; y++ ){
-			if( $(my_field_options).options[y].value == tmp1[0]){
+			if( $(my_field_options).options[y].value == tmp1[1]){
 				$(my_field_options).options[y].selected = true;
 				return true;
 			}
@@ -340,7 +340,7 @@
 	}else if ( $('newstep_action').value == 'GotoMenu'  ){
 		action_string = "s,"+ newpriority+ ",Goto(" + $('newstep_var').value + "|s|1)";
 	}else if ( $('newstep_action').value == 'GotoExtension'  ){
-		action_string = "s,"+ newpriority+ ",Goto(" + $('newstep_var').value + "|1)";
+		action_string = "s,"+ newpriority+ ",Goto(default|" + $('newstep_var').value + "|1)";
 	}else if ( $('newstep_action').value == 'Hangup'  ){
 		action_string = "s,"+ newpriority+ ",Hangup";
 	}
@@ -496,7 +496,7 @@
 			else if( $(current_key_action).value == "gotomenu" )
 					buildstring[keys[k]] = keys[k] + ",1,Goto("+ $(current_key_menus).value + "|s|1)" ;					
 			else if( $(current_key_action).value == "gotoextension" )
-					buildstring[keys[k]] = keys[k] + ",1,Goto("+ $(current_key_exts).value + "|1)" ;					
+					buildstring[keys[k]] = keys[k] + ",1,Goto(default|"+ $(current_key_exts).value + "|1)" ;					
 			else if( $(current_key_action).value == "Custom" ) 
 					buildstring[keys[k]] = keys[k] + ",1,"+ $(current_key_text).value ;
 			else if( $(current_key_action).value == "Hangup" )



More information about the asterisk-gui-commits mailing list