pari: branch 2.0 r4208 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Nov 24 15:24:44 CST 2008


Author: pari
Date: Mon Nov 24 15:24:43 2008
New Revision: 4208

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4208
Log:

 Fix: Agent Login & Agent Callback Login extensions were being 
      displayed as Queue extensions in listOfDestinations



Modified:
    branches/2.0/config/js/index.js

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4208&r1=4207&r2=4208
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Nov 24 15:24:43 2008
@@ -836,6 +836,16 @@
 			});
 		var y = sessionData.pbxinfo.queues.getOwnProperties();
 			y.each(function(q){
+				if( sessionData.pbxinfo.queues[q]['configLine'].contains(',1,agentlogin()') ){
+					var tmp_exten = ASTGUI.parseContextLine.getExten(sessionData.pbxinfo.queues[q]['configLine']) ;
+					tmp.push({ optionText: 'Agent Login -- ' + tmp_exten , optionValue: 'Goto('+ ASTGUI.contexts.QUEUES +','+ tmp_exten + ',1)' });
+					return;
+				}
+				if( sessionData.pbxinfo.queues[q]['configLine'].contains(',1,agentcallbacklogin()') ){
+					var tmp_exten = ASTGUI.parseContextLine.getExten(sessionData.pbxinfo.queues[q]['configLine']) ;
+					tmp.push({ optionText: 'Agent Callback Login -- ' + tmp_exten , optionValue: 'Goto('+ ASTGUI.contexts.QUEUES +','+ tmp_exten + ',1)' });
+					return;
+				}
 				tmp.push({ optionText: 'Queue -- ' + q, optionValue: 'Goto('+ ASTGUI.contexts.QUEUES +','+ q + ',1)' });
 			});
 		var y = sessionData.pbxinfo.voicemenus.getOwnProperties();
@@ -916,7 +926,7 @@
 			}
 			tmp = tmp.concat( sessionData.pbxinfo.vmgroups.getOwnProperties() );
 			tmp = tmp.concat( sessionData.pbxinfo.queues.getOwnProperties() );
-		}catch(err){ 
+		}catch(err){
 
 		}finally{
 			return tmp;




More information about the asterisk-gui-commits mailing list