]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed cut-n-paste regression using the wrong variable.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 14 Sep 2011 15:53:25 +0000 (15:53 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 14 Sep 2011 15:53:25 +0000 (15:53 +0000)
Fixes the missing DAHDI channels when using the newer chan_dahdi.conf
sections for channel configuration.

(closes issue ASTERISK-18496)
Reported by: Sean Darcy
Patches:
      jira_asterisk_18496_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: Sean Darcy, rmudgett

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

channels/chan_dahdi.c

index 3bacfb14a3d2abde71d18cef2544e53b60b99d46..3c52cd003b8a81f6e41d92d831aa3494d73ae4d0 100644 (file)
@@ -18023,7 +18023,7 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *default_conf, str
                        continue;
                }
 
-               chans = ast_variable_retrieve(ucfg, cat, "dahdichan");
+               chans = ast_variable_retrieve(cfg, cat, "dahdichan");
                if (ast_strlen_zero(chans)) {
                        /* Section is useless without a dahdichan value present. */
                        continue;