pri_configuration.rst 3.44 KB
Newer Older
1
**********************
2
PRI card configuration
3
**********************
4 5

Verifications
6
=============
7

Etienne Allovon's avatar
Etienne Allovon committed
8
Verify that the correct module is configured in :file:`/etc/dahdi/modules`
9
depending on the card you installed in your server.
10 11 12

If it wasn't, do again the step :ref:`load_dahdi_modules`

13
.. warning:: *TE13x, TE23x, TE43x* cards :
14

15
    * these cards need a specific dahdi module configuration. See :ref:`dahdi_linemode_selection` paragraph,
16 17
    * you **MUST** install the correct echo-canceller firmware to be able to use these cards. See :ref:`hwec_configuration` paragraph.

18

19
Generate DAHDI configuration
20
============================
21 22 23 24 25 26 27 28 29 30

Issue the command::

  dahdi_genconf

.. warning:: it will erase all existing configuration in :file:`/etc/dahdi/system.conf`
  and :file:`/etc/asterisk/dahdi-channels.conf` files !


Configure
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
=========

DAHDI system.conf configuration
-------------------------------

First step is to check :file:`/etc/dahdi/system.conf` file:

* check the span numbering,
* if needed change the clock source,
* usually (at least in France) you should remove the ``crc4``

See detailed explanations of this file in the :ref:`system_conf` section.

Below is **an example** for a typical french PRI line span::

  # Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" CCS/HDB3/CRC4 RED
  span=1,1,0,ccs,hdb3
  # termtype: te
  bchan=1-15,17-31
  dchan=16
  echocanceller=mg2,1-15,17-31

53

54 55
Asterisk dahdi-channels.conf configuration
------------------------------------------
56

57
Then you have to modify the :file:`/etc/asterisk/dahdi-channels.conf` file:
58

59
* remove the unused lines like::
60

61 62
    context = default
    group = 63
63

64
* change the ``context`` lines if needed,
Etienne Allovon's avatar
Etienne Allovon committed
65
* the ``signalling`` should be one of:
66

67 68
  * ``pri_net``
  * ``pri_cpe``
69

70 71
Below is **an example** for a typical french PRI line span::

Etienne Allovon's avatar
Etienne Allovon committed
72
    ; Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" CCS/HDB3/CRC4 RED
73 74 75
    group = 0,11            ; belongs to group 0 and 11
    context = from-extern   ; incoming call to this span will be sent in 'from-extern' context
    switchtype = euroisdn
Etienne Allovon's avatar
Etienne Allovon committed
76
    signalling = pri_cpe    ; use 'pri_cpe' signalling
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
    channel => 1-15,17-31   ; the above configuration applies to channels 1 to 15 and 17 to 31


Next step
=========

Now that you have configured your PRI card:

#. you must check if you need to follow one of the :ref:`pri_card_specific_conf` sections below,
#. then, if you have another type of card to configure, you can go back to the :ref:`configure your card <card_configuration>` section,
#. if you have configured all your card you have to configure the :ref:`interco_dahdi_conf` in the web interface.


.. _pri_card_specific_conf:

Specific configuration
======================
94 95 96

.. _sync_cable:

97 98
Multiple PRI cards and sync cable
---------------------------------
99

100 101
If you have several PRI cards in your server you should link them with a synchronization cable
to share the exact same clock.
102

103
To do this, you need to:
104 105 106 107 108 109 110

* use the coding wheel on the Digium cards to give them an order of recognition in DAHDI/Asterisk (see Digium_telephony_cards_support_),
* daisy-chain the cards with a sync cable (see Digium_telephony_cards_support_),
* load the DAHDI module with the ``timingcable=1`` option.

Create :file:`/etc/modprobe.d/xivo-timingcable.conf` file and insert the line::

111
   options DAHDI_MODULE_NAME timingcable=1
112

113
Where ``DAHDI_MODULE_NAME`` is the DAHDI module name of your card (e.g. wct4xxp for a TE205P).
114 115 116 117


.. _Digium_telephony_cards_support: http://www.digium.com/en/support/telephony-cards