espiceland: branch 2.0 r5165 - /branches/2.0/config/js/queues.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Apr 1 10:27:41 CDT 2011
Author: espiceland
Date: Fri Apr 1 10:27:36 2011
New Revision: 5165
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5165
Log:
Show agents with technology "DAHDI" correctly.
Modified:
branches/2.0/config/js/queues.js
Modified: branches/2.0/config/js/queues.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/queues.js?view=diff&rev=5165&r1=5164&r2=5165
==============================================================================
--- branches/2.0/config/js/queues.js (original)
+++ branches/2.0/config/js/queues.js Fri Apr 1 10:27:36 2011
@@ -293,13 +293,18 @@
var agent_count = 0 ;
ul.each(function(user){
if( parent.sessionData.pbxinfo.users[user]['hasagent'] && parent.sessionData.pbxinfo.users[user]['hasagent'].isAstTrue() ){
+ var added = 0;
if (parent.sessionData.pbxinfo.users[user]['hassip'] && parent.sessionData.pbxinfo.users[user]['hassip'].isAstTrue()) {
- agent_count++;
+ agent_count++; added++;
ul_agents['SIP/' + user] = parent.sessionData.pbxinfo.users[user]['fullname'] + ' - SIP (' + user + ')';
}
if (parent.sessionData.pbxinfo.users[user]['hasiax'] && parent.sessionData.pbxinfo.users[user]['hasiax'].isAstTrue()) {
+ agent_count++; added++;
+ ul_agents['IAX2/' + user] = parent.sessionData.pbxinfo.users[user]['fullname'] + ' - IAX (' + user + ')';
+ }
+ if (added == 0){
agent_count++;
- ul_agents['IAX2/' + user] = parent.sessionData.pbxinfo.users[user]['fullname'] + ' - IAX (' + user + ')';
+ ul_agents['DAHDI/' + user] = parent.sessionData.pbxinfo.users[user]['fullname'] + ' - Analog (' + user + ')';
}
}
});
More information about the asterisk-gui-commits
mailing list