DAHDI configuration in AsteriskNOW with FreePBX
Affected Products
FreePBX on AsteriskNOW 1.7.1
TDM410/AEX410
TDM800/AEX800
TDM2400/AEX2400
TE122/TE121
TE2xx/TE4xx
Introduction
These installation instructions assume you are working with a fresh install of AsteriskNOW 1.7.1 and you've selected FreePBX as your administration graphical user interface (GUI). To set up your DAHDI devices, perform the following steps:
Log into the FreePBX administrator panel (by default the login username is 'freepbx' and the password is 'fpbx')
Click on the Admin tab at the top of the screen.
Click the Setup tab on the left menu bar
Under the Basic heading, click DAHDi.
The DAHDI hardware should appear under the appropriate heading. Click Edit to modify the properties of a given hardware span (or group of ports for FXO/FXS). Note, if the DAHDI hardware does not appear here, please call Digium Technical Support.
For Digital hardware, administrators should follow the documentation of the device on the far end equipment (typically the telco if connecting directly to the PSTN). Clicking the Edit link will give the following list:
Alarms (unconfigurable, shows the alarm state of the span [Red, Yellow, OK/Green, Blue])
Framing/Coding
T1: either ESF/B8ZS or D4/AMI
E1: either CCS/HDB3 or CAS/AMI
Channels (unconfigurable, set by jumpers on board--see card manual for details)
23/24 (T1)
30/31 (E1)
Signalling
PRI - Net
PRI - CPE
E & M
E & M -- Wink
E & M -- fead(DTMF)
FXOKS
FXOLS
Switchtype
National ISDN 2 (default)
Nortel DMS100
AT&T 4ESS
Lucent 4ESS
EuroISDN
Old National ISDN 1
Q.SIG
Sync/Clock Source
0 (internally clocked/providing timing to far end)
1 (primary receiver of timing from far end)
2 (secondary receiver of timing from far end)
3 (tertiary receiver of timing from far end)
etc.
Line Build Out
0 dB (CSU)/0-133 feet (DSX-1)
133-266 feet (DSX-1)
266-399 feet (DSX-1)
399-533 feet (DSX-1)
533-655 feet (DSX-1)
-7.5 dB (CSU)
-15dB (CSU)
-22.5dB (CSU)
Pridialplan
National
Dynamic
Unknown
Local
Private
International
Prilocaldialplan
National
Dynamic
Unknown
Local
Private
International
Group: set to a group number so it can be referred to as a block in dialplan (see below).
Context: set to dialplan context to handle inbound calls (by default this is from-pstn)
Channels: set to the number of channels of the span you wish to include in this group
Click Submit to complete the modification of the digital span
For analog hardware, do the following:
For each FXO channel:
Set the signaling (Kewl start or Loop Start)
Set the Group number (so the channel can be referred to as a set)
Set the context for incoming calls (from-analog by default)
For each FXS channel:
Set the signaling (Kewl start or Loop Start)
Set the Group number (so the channel can be referred to as a set)
For trunk interfaces (T1/E1/FXO), be sure to set up a Zap Trunk (DAHDI compatibility mode)
Optional: provide Trunk Description
Optional: provide Outbound Caller ID
Set your CID options
Optional: set maximum channels to be used by trunk
Optional: set Disable Trunk flag
Optional: set Monitor Trunk Failures and provide an AGI script that will handle it
Set your Outgoing dialing rules (use the Dial Rules Wizards if necessary)
Set the Outbound Dial Prefix
Set the trunk name (gX by default). Note that this corresponds to the group definition for the Dial() command in Asterisk internally, so 'g' starts outbound calls from 1 and counts up, 'G' goes from the top and works down to 1, 'r' and 'R' are similar to 'g' and 'G' except the channels get used in a round-robin fashion. See the annotated chan_dahdi.conf file from the Asterisk source.
After all changes have been made, be sure to click Apply Configuration Changes before testing your analog or digital devices.