You are on page 1of 10

SE CONFIGURO EL SLOP 4 POR 1 SIN CRC4 Y FULL 30 CANALES Y EL SLOP 4 PORT 2 CON C

RC4 Y SEMI PRIMARIO.


[root@dreampbx ~]# wancfg_dahdi
########################################################################
#
Sangoma Wanpipe
#
#
Dahdi/Zaptel/SMG/TDMAPI/BOOT Configuration Script
#
#
v2.39
#
#
Sangoma Technologies Inc.
#
#
Copyright(c) 2009.
#
########################################################################
Would you like to generate /etc/asterisk/chan_dahdi.conf
1. YES
2. NO
[1-2]:1
--------------------------------------------Configuring T1/E1 cards [A101/A102/A104/A108]
--------------------------------------------A102 detected on slot:4 bus:22
----------------------------------------------------------Configuring port 1 on A102 slot:4 bus:22.
----------------------------------------------------------Select media type for AFT-A102 on port 1 [slot:4 bus:22 span:1]
1. T1
2. E1
3. Unused
4. Exit
[1-4]:2
Configuring port 1 on 102 as E1, line coding:HDB3, framing:CRC4
1. YES - Keep these settings
2. NO - Configure line coding and framing
[1-2, ENTER='YES']:2
Select line coding for port 1 on 102
1. HDB3
2. AMI
[1-2, ENTER='HDB3']:1
Select framing for port 1 on 102
1. CRC4
2. NCRC4
3. UNFRAMED
[1-3, ENTER='CRC4']:2
Select clock for AFT-A102 on port 1 [slot:4 bus:22 span:1]
1. NORMAL
2. MASTER
[1-2]:1
Select signalling type for AFT-A102 on port 1 [slot:4 bus:22 span:1]
1. Zaptel/Dahdi - PRI CPE
2. Zaptel/Dahdi - PRI NET
3. Zaptel/Dahdi - E & M
4. Zaptel/Dahdi - E & M Wink

5. Zaptel/Dahdi - FXS - Loop Start


6. Zaptel/Dahdi - FXS - Ground Start
7. Zaptel/Dahdi - FXS - Kewl Start
8. Zaptel/Dahdi - FX0 - Loop Start
9. Zaptel/Dahdi - FX0 - Ground Start
10. Zaptel/Dahdi - FX0 - Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12]:1
Select switchtype for AFT-A102 on port 1
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7]:5
Configuring port 1 on AFT-A102 as a full E1
1. YES - Use all channels
2. NO - Configure for fractional
[1-2, ENTER='YES']:1
Select dialplan context for AFT-AA102 on port 1
1. from-pstn
2. from-internal
3. Custom
[1-3]:1
Port 1 on AFT-A102 configuration complete...
Press any key to continue:
CONFIGURANDO EL PUERTO 2
----------------------------------------------------------Configuring port 2 on A102 slot:4 bus:22.
----------------------------------------------------------Select media type for AFT-A102 on port 2 [slot:4 bus:22 span:2]
1. T1
2. E1
3. Unused
4. Exit
[1-4, ENTER='E1']:2
Configuring port 2 on 102 as E1, line coding:HDB3, framing:NCRC4
1. YES - Keep these settings
2. NO - Configure line coding and framing
[1-2, ENTER='YES']:1
Select clock for AFT-A102 on port 2 [slot:4 bus:22 span:2]
1. NORMAL
2. MASTER
[1-2, ENTER='NORMAL']:1
Select signalling type for AFT-A102 on port 2 [slot:4 bus:22 span:2]

1. Zaptel/Dahdi - PRI CPE


2. Zaptel/Dahdi - PRI NET
3. Zaptel/Dahdi - E & M
4. Zaptel/Dahdi - E & M Wink
5. Zaptel/Dahdi - FXS - Loop Start
6. Zaptel/Dahdi - FXS - Ground Start
7. Zaptel/Dahdi - FXS - Kewl Start
8. Zaptel/Dahdi - FX0 - Loop Start
9. Zaptel/Dahdi - FX0 - Ground Start
10. Zaptel/Dahdi - FX0 - Kewl Start
11. Sangoma SMG/sangoma_prid- PRI CPE
12. Sangoma SMG/sangoma_prid- PRI NET
[1-12, ENTER='Zaptel/Dahdi - PRI CPE']:1
Select switchtype for AFT-A102 on port 2
1. National ISDN 2
2. Nortel DMS100
3. AT&T 4ESS
4. Lucent 5ESS
5. EuroISDN
6. Old National ISDN 1
7. Q.SIG
[1-7, ENTER='EuroISDN']:5
Configuring port 2 on AFT-A102 as a full E1
1. YES - Use all channels
2. NO - Configure for fractional
[1-2, ENTER='YES']:2
Input the first channel for this span [1-30]
: 1
Input the last channel for this span [1-31]
: 16
Select dialplan context for AFT-AA102 on port 2
1. from-pstn
2. from-internal
3. Custom
[1-3, ENTER='from-pstn']:1
Port 2 on AFT-A102 configuration complete...
Press any key to continue:
T1/E1 card configuration complete.
Press any key to continue:

###################################################################
#
SUMMARY
#
###################################################################
2
0
0
0

T1/E1 port(s) detected, 2 configured


ISDN BRI port(s) detected, 0 configured
analog card(s) detected, 0 configured
usb device(s) detected, 0 configured

Configurator will create the following files:


1. Wanpipe config files in /etc/wanpipe
2. Dahdi config file /etc/dahdi/system.conf
3. Chan-Dahdi config file /etc/asterisk/chan_dahdi.conf
Your original configuration files will be saved to:
1. /etc/dahdi/system.conf.bak
2. /etc/asterisk/chan_dahdi.conf.bak
Your configuration has been saved in /etc/wanpipe/debug-2011-02-10.tgz.
When requesting support, email this file to techdesk@sangoma.com
###################################################################
Configuration Complete! Please select following:
1. YES - Continue
2. NO - Exit
[1-2]:1
Dahdi and Wanpipe configuration complete: choose action
1. Save cfg: Restart Asterisk & Wanpipe now
2. Save cfg: Restart Asterisk & Wanpipe when convenient
3. Save cfg: Stop Asterisk & Wanpipe now
4. Save cfg: Stop Asterisk & Wanpipe when convenient
5. Save cfg: Save cfg only (Not Recommanded!!!)
6. Do not save cfg: Exit
[1-6]:1
Stopping Asterisk...
smg_ctrl: Stopping running processes...
smg_ctrl: safe_sangoma not running...
smg_ctrl: sangoma_brid is stopped
smg_ctrl: sangoma_mgd not running...
Removing PID files...done
Stopping Wanpipe...
Unloading Dahdi modules...
Removing old configuration files...
Copying new Wanpipe configuration files...
Copying new Dahdi configuration file (/etc/dahdi/system.conf)...
Copying new Chan-Dahdi configuration files (/etc/asterisk/chan_dahdi.conf)...
Starting Wanpipe...
Starting WAN Router...
Loading WAN drivers: wanpipe done.
Starting up device: wanpipe1
Starting up device: wanpipe2
Configuring interfaces: w1g1
done.

Configuring interfaces: w2g1


done.
Loading Dahdi...
DAHDI Tools Version - 2.4.0
DAHDI Version: 2.4.0
Echo Canceller(s):
Configuration
======================
SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
47 channels to configure.
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting
Setting

echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan
echocan

for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for
for

channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel
channel

1 to mg2
2 to mg2
3 to mg2
4 to mg2
5 to mg2
6 to mg2
7 to mg2
8 to mg2
9 to mg2
10 to mg2
11 to mg2
12 to mg2
13 to mg2
14 to mg2
15 to mg2
16 to none
17 to mg2
18 to mg2
19 to mg2
20 to mg2
21 to mg2
22 to mg2
23 to mg2
24 to mg2
25 to mg2
26 to mg2
27 to mg2
28 to mg2
29 to mg2
30 to mg2
31 to mg2
32 to mg2
33 to mg2
34 to mg2
35 to mg2
36 to mg2
37 to mg2
38 to mg2
39 to mg2
40 to mg2
41 to mg2
42 to mg2
43 to mg2
44 to mg2

Setting echocan for channel 45 to mg2


Setting echocan for channel 46 to mg2
Setting echocan for channel 47 to none
Starting Asterisk...
Listing Asterisk channels...
Chan Extension
ate
pseudo
Service
1
Service
2
Service
3
Service
4
Service
5
Service
6
Service
7
Service
8
Service
9
Service
10
Service
11
Service
12
Service
13
Service
14
Service
15
Service
17
Service
18
Service
19
Service
20
Service
21
Service
22
Service
23
Service
24
Service
25
Service

Context

Language

MOH Interpret

Blocked

St

default

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

26
Service
27
Service
28
Service
29
Service
30
Service
31
Service
32
Service
33
Service
34
Service
35
Service
36
Service
37
Service
38
Service
39
Service
40
Service
41
Service
42
Service
43
Service
44
Service
45
Service
46
Service

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

from-pstn

default

In

Type "asterisk -r" to connect to Asterisk console


Wanrouter start complete...
Current boot level is 3
Wanrouter boot scripts configuration...
Removing existing wanrouter boot scripts...OK
Would you like wanrouter to start on system boot?
1. YES
2. NO
[1-2]:1
Verifying Dahdi boot scripts...
Verifying Dahdi boot scripts...Enabled (level:26)
Verifying Dahdi shutdown scripts...Enabled (level:74)

Enabling wanrouter boot scripts ...(level:25)


Enabling wanrouter shutdown scripts ...(level:73)
Would you like to execute 'dahdi_cfg' each time wanrouter starts?
1. YES
2. NO
[1-2]:1
Remvoing old smg_ctrl boot.....OK
Remvoing old smg_ctrl_safe boot.....OK
Sangoma cards configuration complete, exiting...
Hacemos un lsdahdi si que los primarios esten configurados...
[root@dreampbx ~]# lsdahdi
### Span 1: WPE1/0 "wanpipe1 card 0" (MASTER) HDB3/CCS RED
1 PRI
Clear
(In use) (SWEC: MG2) RED
2 PRI
Clear
(In use) (SWEC: MG2) RED
3 PRI
Clear
(In use) (SWEC: MG2) RED
4 PRI
Clear
(In use) (SWEC: MG2) RED
5 PRI
Clear
(In use) (SWEC: MG2) RED
6 PRI
Clear
(In use) (SWEC: MG2) RED
7 PRI
Clear
(In use) (SWEC: MG2) RED
8 PRI
Clear
(In use) (SWEC: MG2) RED
9 PRI
Clear
(In use) (SWEC: MG2) RED
10 PRI
Clear
(In use) (SWEC: MG2) RED
11 PRI
Clear
(In use) (SWEC: MG2) RED
12 PRI
Clear
(In use) (SWEC: MG2) RED
13 PRI
Clear
(In use) (SWEC: MG2) RED
14 PRI
Clear
(In use) (SWEC: MG2) RED
15 PRI
Clear
(In use) (SWEC: MG2) RED
16 PRI
Hardware-assisted HDLC (In use) RED
17 PRI
Clear
(In use) (SWEC: MG2) RED
18 PRI
Clear
(In use) (SWEC: MG2) RED
19 PRI
Clear
(In use) (SWEC: MG2) RED
20 PRI
Clear
(In use) (SWEC: MG2) RED
21 PRI
Clear
(In use) (SWEC: MG2) RED
22 PRI
Clear
(In use) (SWEC: MG2) RED
23 PRI
Clear
(In use) (SWEC: MG2) RED
24 PRI
Clear
(In use) (SWEC: MG2) RED
25 PRI
Clear
(In use) (SWEC: MG2) RED
26 PRI
Clear
(In use) (SWEC: MG2) RED
27 PRI
Clear
(In use) (SWEC: MG2) RED
28 PRI
Clear
(In use) (SWEC: MG2) RED
29 PRI
Clear
(In use) (SWEC: MG2) RED
30 PRI
Clear
(In use) (SWEC: MG2) RED
31 PRI
Clear
(In use) (SWEC: MG2) RED
### Span 2: WPE1/1 "wanpipe2 card 1" HDB3/CCS RED
32 PRI
Clear
(In use) (SWEC: MG2) RED
33 PRI
Clear
(In use) (SWEC: MG2) RED
34 PRI
Clear
(In use) (SWEC: MG2) RED
35 PRI
Clear
(In use) (SWEC: MG2) RED
36 PRI
Clear
(In use) (SWEC: MG2) RED
37 PRI
Clear
(In use) (SWEC: MG2) RED
38 PRI
Clear
(In use) (SWEC: MG2) RED
39 PRI
Clear
(In use) (SWEC: MG2) RED
40 PRI
Clear
(In use) (SWEC: MG2) RED
41 PRI
Clear
(In use) (SWEC: MG2) RED
42 PRI
Clear
(In use) (SWEC: MG2) RED

43 PRI
44 PRI
45 PRI
46 PRI
47 PRI
48 PRI
49 PRI
50 PRI
51 PRI
52 PRI
53 PRI
54 PRI
55 PRI
56 PRI
57 PRI
58 PRI
59 PRI
60 PRI
61 PRI
62 PRI
[root@dreampbx

Clear
(In use) (SWEC:
Clear
(In use) (SWEC:
Clear
(In use) (SWEC:
Clear
(In use) (SWEC:
Hardware-assisted HDLC (In
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
RED
~]#

MG2)
MG2)
MG2)
MG2)
use)

RED
RED
RED
RED
RED

ingresamos al CLI y observamos..


[Feb 10 17:19:50] WARNING[4800]: chan_dahdi.c:4169
available! Using Primary channel 16 as D-channel
[Feb 10 17:19:54] WARNING[4800]: chan_dahdi.c:4169
available! Using Primary channel 16 as D-channel
[Feb 10 17:19:54] WARNING[4801]: chan_dahdi.c:4169
available! Using Primary channel 47 as D-channel
[Feb 10 17:19:58] WARNING[4801]: chan_dahdi.c:4169
available! Using Primary channel 47 as D-channel
[Feb 10 17:19:58] WARNING[4800]: chan_dahdi.c:4169
available! Using Primary channel 16 as D-channel
[Feb 10 17:20:02] WARNING[4801]: chan_dahdi.c:4169
available! Using Primary channel 47 as D-channel
[Feb 10 17:20:02] WARNING[4800]: chan_dahdi.c:4169
available! Using Primary channel 16 as D-channel

pri_find_dchan:
anyway!
pri_find_dchan:
anyway!
pri_find_dchan:
anyway!
pri_find_dchan:
anyway!
pri_find_dchan:
anyway!
pri_find_dchan:
anyway!
pri_find_dchan:
anyway!

ingresamos al chan_dahdi.conf
[root@dreampbx ~]# vim /etc/asterisk/chan_dahdi.conf

[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes

No D-channels
No D-channels
No D-channels
No D-channels
No D-channels
No D-channels
No D-channels

transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
;Sangoma A102 port 1 [slot:4 bus:22 span:1] <wanpipe1>
switchtype=euroisdn
context=from-pstn
group=0
echocancel=yes
signalling=pri_cpe
channel =>1-15,17-31
;Sangoma A102 port 2 [slot:4 bus:22 span:2] <wanpipe2>
switchtype=euroisdn
context=from-pstn
group=0
echocancel=yes
signalling=pri_cpe
channel =>32-46

You might also like