]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
For backwards compatibility with previous 1.4 versions which used "zapchan"
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 01:17:14 +0000 (01:17 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 Aug 2008 01:17:14 +0000 (01:17 +0000)
in users.conf, ensure that we still support it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@136304 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 78581978e50d96fd9a1ed3fbc64ba07054fd5d75..44804a8122143c816aa7fb5cea2751298d4b89d9 100644 (file)
@@ -10789,7 +10789,7 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
                        iscrv = !strcasecmp(v->name, "crv");
                        if (build_channels(confp, iscrv, v->value, reload, v->lineno, &found_pseudo))
                                        return -1;
-               } else if (!strcasecmp(v->name, "dahdichan")) {
+               } else if (!strcasecmp(v->name, "zapchan") || !strcasecmp(v->name, "dahdichan")) {
                        ast_copy_string(dahdichan, v->value, sizeof(dahdichan));
                } else if (!strcasecmp(v->name, "usedistinctiveringdetection")) {
                        if (ast_true(v->value))