diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-05-14 14:02:51 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-05-14 14:02:51 +0000 |
commit | 063c2dd2b03c4c02981751608a49d564ed640b7c (patch) | |
tree | 7f14de7e3054bcb6b08873780586d19427b3e952 | |
parent | ad798d2aca153c0315d1808fdcea8bb6a0127af6 (diff) |
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
-rw-r--r-- | dahdi_cfg.c | 6 |
1 files changed, 6 insertions, 0 deletions
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<numzones;x++) { if (debug & DEBUG_APPLY) { printf("Loading tone zone for %s\n", zonestoload[x]); |