[asterisk-users] auto_assign_spans=0 [was: Re: DAHDI on CentOS 7]
tzafrir.cohen at xorcom.com
Tue Aug 16 06:25:39 CDT 2016
On Mon, Aug 15, 2016 at 08:36:43AM -0400, Jerry Geis wrote:
> What is needed to get DAHDI to start up correctly on CentOS 7 and systemd...
> I am using DAHDI-linux-complete 2.11.1
> I saw mention in my search that it has been fixed after 2.11.1 but cannot
> what the fix is.
There are some good reasons for that. But I'll start with recommending
to set auto_assign_spans=0 . All of our packages have a patch such as:
@@ -7405,7 +7405,7 @@ int dahdi_assign_device_spans(struct dahdi_device *ddev)
-static int auto_assign_spans = 1;
+static int auto_assign_spans = 0;
static const char *UNKNOWN = "";
Or simpler, applicable at runtime (module load time):
echo options dahdi auto_assign_spans=0 >>/etc/dahdi/modprobe.d/dahdi.conf
For starters, this means you no longer need to disableautomatic module
loading for PCI cards (which was not needed for most systems anyway),
and that on its own avoids most of the need for the init script.
It also avoids unloading the modules at shutdown. Which is a good thing.
Do that, and report what problems you have. Because I don't seem to have
problems with my packages (on Centos 7 and Debian Jessie).
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
More information about the asterisk-users