rbrindley: branch 2.0 r4530 - /branches/2.0/config/js/welcome.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Feb 27 11:13:53 CST 2009


Author: rbrindley
Date: Fri Feb 27 11:13:50 2009
New Revision: 4530

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

- ExtensionStatus event now utilizes the new manager_events.parseEvent function


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

Modified: branches/2.0/config/js/welcome.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/welcome.js?view=diff&rev=4530&r1=4529&r2=4530
==============================================================================
--- branches/2.0/config/js/welcome.js (original)
+++ branches/2.0/config/js/welcome.js Fri Feb 27 11:13:50 2009
@@ -596,9 +596,10 @@
 			this.updateAgent("callbacklogoff", agent, loginchan);
 			break;
 		case 'event: extensionstatus':
-			var exten = event_lines[2].split(' ')[1];	//Exten: SIP/6000
-			var context = event_lines[3].split(' ')[1];	//Context: default
-			var status = event_lines[4].split(' ')[1];	//Status: 1
+			var eventObj = this.parseEvent(event_lines);
+			var exten = eventObj.exten;	//Exten: SIP/6000
+			var context = eventObj.context;	//Context: default
+			var status = eventObj.status;	//Status: 1
 			this.updateExtension(exten.trim(), context, status);
 			break;
 		case 'event: hangup':




More information about the asterisk-gui-commits mailing list