pari: branch 2.0 r3873 - /branches/2.0/config/js/pbx.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Sep 24 15:06:20 CDT 2008
Author: pari
Date: Wed Sep 24 15:06:20 2008
New Revision: 3873
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3873
Log:
Fix for http://bugs.digium.com/view.php?id=13540
Issue: Voice menu extensions are duplicated in extensions.conf after editing the voice menus in GUI.
Note: This occurs after editing the voice menu, logout and login.
Extensions.conf sample:
[voicemenus]
exten = 7000,1,Goto(voicemenu-custom-1|s|1)
exten = 7001,1,Goto(voicemenu-custom-2|s|1)
exten = 7001,1,Goto(voicemenu-custom-2|s|1)
exten = 7000,1,Goto(voicemenu-custom-1|s|1)
Modified:
branches/2.0/config/js/pbx.js
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=3873&r1=3872&r2=3873
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Wed Sep 24 15:06:20 2008
@@ -1445,7 +1445,7 @@
var v = new listOfSynActions('extensions.conf') ;
v.new_action('delcat', menu_name, '', '');
if( sessionData.pbxinfo.voicemenus[menu_name]['alias_exten'] != '' ){
- var aext = sessionData.pbxinfo.voicemenus[menu_name]['alias_exten'] ;
+ var aext = sessionData.pbxinfo.voicemenus[menu_name]['alias_exten'].afterChar('=') ;
v.new_action('delete', ASTGUI.contexts.VoiceMenuExtensions , 'exten', '', aext);
v.new_action('delete', 'default' , 'exten', '', aext); // backward compatibility with gui 1.x
}
More information about the asterisk-gui-commits
mailing list