pari: trunk r1671 - /trunk/config/digital.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Oct 11 15:30:14 CDT 2007
Author: pari
Date: Thu Oct 11 15:30:14 2007
New Revision: 1671
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1671
Log:
add DID contexts for spans
Modified:
trunk/config/digital.html
Modified: trunk/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/digital.html?view=diff&rev=1671&r1=1670&r2=1671
==============================================================================
--- trunk/config/digital.html (original)
+++ trunk/config/digital.html Thu Oct 11 15:30:14 2007
@@ -332,20 +332,28 @@
updateUsersConf: function(){
/* update the users.conf to make sure there are corresponding [SPAN_x] contexts are updated */
var uri = '';
+ var uri2 = '';
var add_lines = function(){
// for each span update span with new values of 'switchtype', 'singalling'
- var c = 0, d ='' ;
+ var c = 0, d ='', e ='', f=0 ;
for( var k in SPANS ){ if( SPANS.hasOwnProperty(k) ){
d = 'span_'+ String(k);
+ e = asterisk_guiTDPrefix + d ;
uri += build_action('delcat', c, d , "", ""); c++;
uri += build_action('newcat', c, d , "", ""); c++;
uri += build_action('update', c, d , "switchtype", SPANS[k]['switchtype']); c++;
uri += build_action('update', c, d , "signalling", SPANS[k]['signalling']); c++;
- uri += build_action('update', c, d , "context", asterisk_guiTDPrefix + d ); c++;
+ uri += build_action('update', c, d , "context", e); c++;
uri += build_action('update', c, d , "zapchan", SPANS[k]['zapchanstring'] ); c++;
+
+ uri2 += build_action('delcat', f, e , "", ""); f++;
+ uri2 += build_action('newcat', f, e , "", ""); f++;
+ uri2 += build_action('update', f, e , 'include', 'default'); f++;
}}
}();
- makerequest('u', "users.conf", uri , function(t) { applySettings.generate_zaptel(); });
+ makerequest('u', "users.conf", uri , function(t) {
+ makerequest('u', "extensions.conf", uri2 , function(t) { applySettings.generate_zaptel(); });
+ });
},
updateZaptel: function(){
More information about the asterisk-gui-commits
mailing list