pari: trunk r1000 - /trunk/config/scripts/astman.js
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Wed May 30 11:07:09 MST 2007
Author: pari
Date: Wed May 30 13:07:08 2007
New Revision: 1000
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1000
Log:
Yay! 1000th commit, minor fixes to getExten and getPriority
Modified:
trunk/config/scripts/astman.js
Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=1000&r1=999&r2=1000
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Wed May 30 13:07:08 2007
@@ -53,11 +53,19 @@
},
getExten: function(q){
- return q.split('exten=')[1].split(',')[0];
+ if( q.match('exten=') ){
+ return q.split('exten=')[1].split(',')[0];
+ }else{
+ return q.split(',')[0];
+ }
},
getPriority: function(q){
- return q.split('exten=')[1].split(',')[1];
+ if( q.match('exten=') ){
+ return q.split('exten=')[1].split(',')[1];
+ }else{
+ return q.split(',')[1];
+ }
},
getAction: function(q){ // q can be the the whole contextLine or just 'parseContextLine.read(contextline)[1]'
More information about the asterisk-gui-commits
mailing list