pari: branch asterisknow r2046 - /branches/asterisknow/config/misdn.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Dec 27 15:53:24 CST 2007
Author: pari
Date: Thu Dec 27 15:53:23 2007
New Revision: 2046
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2046
Log:
fix: parseMisdnInit is choking when 'te_ptp' is left blank in misdn-init.conf
Modified:
branches/asterisknow/config/misdn.html
Modified: branches/asterisknow/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/misdn.html?view=diff&rev=2046&r1=2045&r2=2046
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Thu Dec 27 15:53:23 2007
@@ -160,6 +160,14 @@
readCardsConfiguration: function(){
var parseMisdnInit = function(c){
+ /*
+ // gui expects misdn-init.conf in the following format
+ card = 1,0x4
+ te_ptp = 1,2,3,4
+ poll = 128
+ dsp_options = 0
+ debug = 0
+ */
var records = c['general'] ;
var a,b,c,d;
@@ -167,6 +175,7 @@
if( records[t].beginsWith('nt_ptp') || records[t].beginsWith('nt_ptmp') || records[t].beginsWith('te_ptp') || records[t].beginsWith('te_ptmp') || records[t].beginsWith('te_capi_ptp') || records[t].beginsWith('te_capi_ptmp') ){
a = records[t].split("=")[0];
b = records[t].split("=")[1];
+ if(!b.length){ continue; }
if( b.contains(",") ){
c = b.split(",");
c.each( function(d) {
More information about the asterisk-gui-commits
mailing list