domingo, 21 de abril de 2013

Instalar Sangoma A101D - Asterisk


Tenemos un Primario de 32 canales(bueno 30) e instalaremos una tarjeta sangoma A101D que es una tarjeta T1/E1 con cancelación de ECO incorporado.



[root@pbx ~]# wancfg_dahdi



would you like to generate /etc/asterisk/chan_dahdi.conf

1. YES

 2. NO

[1-2]:1



Configuring port 1 on A101 slot:4 bus:4.

-----------------------------------------------------------



Select media type for AFT-A101 on port 1 [slot:4 bus:4 span:1]

 1. T1

 2. E1

 3. Unused

 4. Exit

[1-4]:2



Configuring port 1 on 101 as E1, line coding:HDB3, framing:CRC4

 1. YES - Keep these settings

 2. NO  - Configure line coding and framing

[1-2, ENTER='YES']:1



note: for the above you need to ask your provider for the detaisl like crc4 is enable to disable based on that u need to enter



Select clock for AFT-A101 on port 1 [slot:4 bus:4 span:1]

 1. NORMAL

 2. MASTER

[1-2]:2



Select signalling type for AFT-A101 on port 1 [slot:4 bus:4 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



note: if the line is from the provider select 1 , if you are connecting card to leagal epabx then give 2



Select switchtype for AFT-A101 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]:1



Configuring port 1 on AFT-A101 as a full E1

 1. YES - Use all channels

 2. NO  - Configure for fractional

[1-2, ENTER='YES']:1



Select dialplan context for AFT-A101 on port 1

 1. from-pstn

 2. from-internal

 3. Custom

[1-3]:1



incomming context



Input the group for this port

:0



Port 1 on AFT-A101 configuration complete...

Press any key to continue:



T1/E1 card configuration complete.

Press any key to continue:



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



Would you like wanrouter to start on system boot?

 1. YES

 2. NO

[1-2]:1



Would you like to execute 'dahdi_cfg' each time wanrouter starts?

 1. YES

 2. NO

[1-2]:1



end of wanroute configuration



Now you need to check pri status ,



1. type dahdi_cfg   --  this shows does the card configured properly or not , shows the channels configured

2. go to asterisk cli

   asterisk -vvvvr

   dahdi show status

   dahdi show channels

   pri show spans



Verificando con el comando lspci podemos ver que se encuentra la tarjeta sangoma.






Una vez configurado automaticamente asterisk reconocera la tarjeta.






Usando el comando lsdahdi obtenemos:






Dentro del CLI tambien podemos revisar: