PRI config for A102

mylesridgely
Posts: 1
Member Since:
2011-04-19

## Hardware ##

server: Dell PowerEdge 1850
cards: Sangoma PCI Card: A102

## Download and Install Trixbox CE 2.8.0.4 ISO ##

## Get WANPIPE RPM build for Trixbox CE 2.8.0.4 ##

wget ftp://ftp.sangoma.com/linux/custom/shaunt/Trixbox%202.8.0.4/Stock...
wget ftp://ftp.sangoma.com/linux/custom/shaunt/Trixbox%202.8.0.4/Stock...

rpm -i wanpipe-modules-2.6.18-164.11.1.el5-3.5.18-0.i686.rpm
rpm -i wanpipe-util-3.5.18-0.i686.rpm

## Sangoma Install Wizard ##

setup-sangoma

PORT A

1 T1, coding:B8ZS, framing:ESF

1 Normal

1 Zaptel/Dahdi - PRI CPE

1 National ISDN 2

1 Use all channels

1 PSTN

PORT B

1 T1, coding:B8ZS, framing:ESF

1 Normal

1 Zaptel/Dahdi - PRI CPE

1 National ISDN 2

1 Use all channels

1 PSTN

1

1

1 It will write all config files then exit if everything is ok.

## Hardware is installed and PRI ports are configured ##
## At this point in the install All PRI are green and Net4 on the Adtran is green ##

dahdi_scan

#show output of card config [2] is red since its not in use

[1]
active=yes
alarms=OK
description=wanpipe1 card 0
name=WPT1/0
manufacturer=Sangoma Technologies
devicetype=A102
location=SLOT=11, BUS=3
basechan=1
totchans=24
irq=225
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF
[2]
active=yes
alarms=RED
description=wanpipe2 card 1
name=WPT1/1
manufacturer=Sangoma Technologies
devicetype=A102
location=SLOT=11, BUS=3
basechan=25
totchans=24
irq=225
type=digital-T1
syncsrc=0
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF

#### Config Files ####

vi /etc/dahdi/system.conf

#autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
#autogenrated on 2011-04-19
#Dahdi Channels Configurations
#For detailed Dahdi options, view /etc/dahdi/system.conf.bak
loadzone=us
defaultzone=us

#Sangoma A102 port 1 [slot:11 bus:3 span:1]
span=1,1,0,esf,b8zs
bchan=1-23
echocanceller=mg2,1-23
hardhdlc=24 # this is the default install I have also tried dchan=24

#Sangoma A102 port 2 [slot:11 bus:3 span:2]
span=2,2,0,esf,b8zs
bchan=25-47
echocanceller=mg2,25-47
hardhdlc=48 # this is the default install I have also tried dchan=24

vi /etc/asterisk/dahdi-channels.conf

; Autogenerated by /usr/sbin/setup-sangoma 2011-04-19
; If you edit this file and execute /usr/sbin/setup-sangoma again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

;Sangoma A102 port 1 [slot:11 bus:3 span:1]
switchtype=national
context=from-zaptel
group=0
echocancel=yes
signalling=pri_cpe
channel => 1-24

;Sangoma A102 port 2 [slot:11 bus:3 span:2]
switchtype=national
context=from-zaptel
group=0
echocancel=yes
signalling=pri_cpe
channel => 25-48

vi /etc/asterisk/chan_dahdi.conf

;
; DAHDI telephony
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include setup-pstn configs
#include dahdi-channels.conf

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf

#### Problem ####

I am new to asterisk and trixbox so I might be missing something but I never get to a point where I can call in or out. I always get a fast busy no matter what Trunks, Zap chan DID and Internal / External routes I create. I have a bank of 20 DIDs for my PRI circuit.

Thanks in advance for any help.



marc.sangoma
Posts: 373
Member Since:
2008-04-08
Hi, Outbound calls Just make

Hi,

Outbound calls
Just make a new trunk and the type is ZAP and then put the identifier as "g0" as this comes from "group=0". So that trunk defined in the webui will dial group0 which is what the pri's are on above.

Inbound calls
Just define inbound routes based off the DID's you have. So you will define a rule that says if did "1234567890" (if thats your did) then go to this destination, which is normally a SIP extension.

If you have any other questions just email techdesk@Sangoma.com and we will help you out.

--

Marc



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.