rbrindley: branch rbrindley/astman_revamp r4673 - /team/rbrindley/astman_reva...
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Mar 26 15:06:04 CDT 2009
Author: rbrindley
Date: Thu Mar 26 15:06:02 2009
New Revision: 4673
URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4673
Log:
- incoming.js now uses pbx.trunks.rules.edit
Modified:
team/rbrindley/astman_revamp/config/js/incoming.js
Modified: team/rbrindley/astman_revamp/config/js/incoming.js
URL: http://svn.digium.com/svn-view/asterisk-gui/team/rbrindley/astman_revamp/config/js/incoming.js?view=diff&rev=4673&r1=4672&r2=4673
==============================================================================
--- team/rbrindley/astman_revamp/config/js/incoming.js (original)
+++ team/rbrindley/astman_revamp/config/js/incoming.js Thu Mar 26 15:06:02 2009
@@ -372,21 +372,17 @@
parent.ASTGUI.dialog.hide();
}else{ // edit/update existing incoming rule
-
- var pp = ASTGUI.parseContextLine.getPriority(EDIT_CONTEXT_IR_LINE);
-
- if( ASTGUI.getFieldValue('edit_itrl_dest') == 'ByDID' ){
- var tmp_didXdigits = ASTGUI.getFieldValue('edit_itrl_LocalDest_Pattern') || '0' ;
- var this_ActualRule = ASTGUI.getFieldValue('edit_itrl_pattern') + ',' + pp + ',Goto(default,${EXTEN:'+ tmp_didXdigits + '},1)';
- }else{
- var this_ActualRule = ASTGUI.getFieldValue('edit_itrl_pattern') + ',' + pp + ',' + ASTGUI.getFieldValue('edit_itrl_dest') ;
+ var resp = parent.pbx.trunks.rules.edit({
+ line: EDIT_CONTEXT_IR_LINE,
+ dest: dest,
+ digits: local_dest,
+ cxt: EDIT_CONTEXT_IR,
+ pattern: TMP_NEW_PATTERN
+ });
+ if (resp) {
+ ASTGUI.feedback( { msg: 'Updated !', showfor: 2 , color: 'blue', bgcolor: '#FFFFFF' } );
}
- var u = new listOfSynActions('extensions.conf') ;
- u.new_action( 'update' , EDIT_CONTEXT_IR , 'exten' , this_ActualRule , EDIT_CONTEXT_IR_LINE.afterChar('=') );
- u.callActions();
-
- ASTGUI.feedback( { msg: 'Updated !', showfor: 2 , color: 'blue', bgcolor: '#FFFFFF' } );
window.location.reload();
}
}
More information about the asterisk-gui-commits
mailing list