load_modules.rst 3.06 KB
Newer Older
1 2
.. _load_dahdi_modules:

3
******************************
4
Load the correct DAHDI modules
5
******************************
6 7 8

.. highlight:: none

9 10 11 12 13 14
For your Digium card to work properly you must load the appropriate DAHDI kernel module.
This is done via the file :file:`/etc/dahdi/modules` and this page will guide you through its configuration.


Know which card is in your server
=================================
15 16 17 18

You can see which cards are detected by issuing the ``dahdi_hardware`` command::

   dahdi_hardware
19 20 21 22
   pci:0000:05:0d.0     wcb4xxp-     d161:b410 Digium Wildcard B410P
   pci:0000:05:0e.0     wct4xxp-     d161:0205 Wildcard TE205P (4th Gen)

This command gives the card name detected and, more importantly, the DAHDI kernel module
23
needed for this card. In the above example you can see that two cards are detected in the system:
24 25 26 27 28 29 30

* a Digium B410P *which needs* the ``wcb4xxp`` module
* and a Digium TE205P *which needs* the ``wct4xxp`` module


Create the configuration file
=============================
31

32
Now that we know the modules we need, we can create our configuration file:
33

34
#. Create the file :file:`/etc/dahdi/modules`::
Etienne Allovon's avatar
Etienne Allovon committed
35

36 37
    touch /etc/dahdi/modules

38 39
#. Fill it with the modules name you found with the ``dahdi_hardware`` command (one module name per line).
   In our example, your :file:`/etc/dahdi/modules` file should contain the following lines::
40 41 42 43

    wcb4xxp
    wct4xxp

44
.. note::
Etienne Allovon's avatar
Etienne Allovon committed
45
  In the :file:`/usr/share/dahdi/modules.sample` file you can find all the modules supported in your
46 47 48
  XiVO version.


49 50 51 52 53 54 55 56 57 58 59
Apply the configuration
=======================

To apply the configuration, restart the services::

  xivo-service restart


Next step
=========

60
Now that you have loaded the correct module for your card you must:
61

62
#. check if you need to follow one of the :ref:`dahdi_modules_specific_conf` sections below,
Etienne Allovon's avatar
Etienne Allovon committed
63
#. and continue with the next configuration step which is to :ref:`configure the echo canceller <hwec_configuration>`.
64 65 66


.. _dahdi_modules_specific_conf:
67 68 69 70

Specific configuration
======================

Etienne Allovon's avatar
Etienne Allovon committed
71
This section lists some specific configuration.
72
You should not follow them unless you have a specific need.
73 74


75 76
.. _dahdi_linemode_selection:

77 78
TE13x, TE23x, TE43x: E1/T1 selection
------------------------------------
79

80
With E1/T1 cards you must select the correct *line mode* between:
81 82 83 84

* E1 : the European standard,
* and T1 : North American standard

85
For old generation cards (TE12x, TE20x, TE40x series) the *line mode* is selected via a physical jumper.
86

87
For new generation cards like TE13x, TE23x, TE43x series the *line mode* is selected by configuration.
88

89
If you're configuring one of these **TE13x, T23x, T43x** cards then you **MUST** create a configuration file to set
90 91 92 93 94 95
the line mode to E1:

#. Create the file :file:`/etc/modprobe.d/xivo-wcte-linemode.conf`::

    touch /etc/modprobe.d/xivo-wcte-linemode.conf

Etienne Allovon's avatar
Etienne Allovon committed
96
#. Fill it with the following lines replacing ``DAHDI_MODULE_NAME`` by the correct module name
97
   (``wcte13xp``, ``wcte43x`` ...)::
98

99
    # set the card in E1/T1 mode
100
    options DAHDI_MODULE_NAME default_linemode=e1
101

102
#. Then, restart the services::
103

104
    xivo-service restart
105

Etienne Lessard's avatar
Etienne Lessard committed
106