[dahdi-commits] sruffell: tools/trunk r6619 - /tools/trunk/dahdi_cfg.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu May 14 09:02:55 CDT 2009
Author: sruffell
Date: Thu May 14 09:02:51 2009
New Revision: 6619
URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6619
Log:
dahdi_cfg: Default to the us tonezone if not specified in system.conf.
If there are not "loadzone" and "defaultzone" lines in /etc/dahdi/system.conf,
default to the us zone. This mimics the behavior of older zaptel releases.
DAHDI-29.
Modified:
tools/trunk/dahdi_cfg.c
Modified: tools/trunk/dahdi_cfg.c
URL: http://svn.asterisk.org/svn-view/dahdi/tools/trunk/dahdi_cfg.c?view=diff&rev=6619&r1=6618&r2=6619
==============================================================================
--- tools/trunk/dahdi_cfg.c (original)
+++ tools/trunk/dahdi_cfg.c Thu May 14 09:02:51 2009
@@ -1628,6 +1628,12 @@
exit(1);
}
}
+ if (0 == numzones) {
+ /* Default to the us zone if one wasn't specified. */
+ dahdi_copy_string(zonestoload[numzones++], "us", sizeof(zonestoload[0]));
+ deftonezone = 0;
+ }
+
for (x=0;x<numzones;x++) {
if (debug & DEBUG_APPLY) {
printf("Loading tone zone for %s\n", zonestoload[x]);
More information about the dahdi-commits
mailing list