pari: trunk r987 - /trunk/config/incoming.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri May 25 10:38:50 MST 2007


Author: pari
Date: Fri May 25 12:38:50 2007
New Revision: 987

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=987
Log:
Forward incoming calls to RingGroups

Modified:
    trunk/config/incoming.html

Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=987&r1=986&r2=987
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Fri May 25 12:38:50 2007
@@ -80,10 +80,19 @@
 	if ( ( t.name.substring(0,asterisk_guiTDPrefix.length) == asterisk_guiTDPrefix ) && t.names[x]=='exten' ){
 		//get pattern & action
 		var temp = t.fields[x].split(',');
-		if( temp[0] == "s" ){return false;}
-		didtrunks[t.name][temp[0]] = new Object();
-		didtrunks[t.name][temp[0]].priority = temp[1];
-		didtrunks[t.name][temp[0]].action = temp[2];
+		var f = temp[0];
+		if( f == "s" ){return false;}
+		didtrunks[t.name][f] = new Object();
+		didtrunks[t.name][f].priority = temp[1];
+		temp.splice(0,2);
+		didtrunks[t.name][f].action = temp.join(',');
+	}
+
+	if( t.name.match('ringroups-custom-') && (x == undefined) ){
+		var k = t.fieldbyname['gui_ring_groupname'];
+		var l = (k)?k:t.name;
+		add_toext( 'Goto('+t.name+',s,1)', l + ' -- RingGroup' );
+		return false;
 	}
 
 	if( (t.name == TIMERULES_CATEGORY && x != undefined )) {



More information about the asterisk-gui-commits mailing list