From 063c2dd2b03c4c02981751608a49d564ed640b7c Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 14 May 2009 14:02:51 +0000 Subject: 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. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6619 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi_cfg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dahdi_cfg.c b/dahdi_cfg.c index 8f0dd0a..9e6bb22 100644 --- a/dahdi_cfg.c +++ b/dahdi_cfg.c @@ -1628,6 +1628,12 @@ finish: 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