Comment Configurer for carte E1   print

1. type lspci command to check whether your server have recognized the sangoma card
the above command will return someting like below
"Sangoma Technologies Corp. A200/Remora FXO/FXS Analog AFT card"
-------------------------------------------------------------------------------------------
2. now type 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']:2



Select line coding for port 1 on 101
1. HDB3
2. AMI
[1-2, ENTER='HDB3']:1


Select framing for port 1 on 101
1. CRC4
2. NCRC4 --- (NO CRC4)
3. UNFRAMED
[1-3, ENTER='CRC4']:2



note: FOR IAM NCRC4 - for the above you need to ask your OPERATOR for the details 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]:5
-------------------------------------------------------------------------------------------

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 ------ For Elastix & freepbx so i selected from-pstn , if yours is different then select custom and enter your incoming context
-------------------------------------------------------------------------------------------

Input the group for this port
:0 ---- i have give zero , if you want the group name 1 then give 1
this is based on how you write your outgoing dialplan

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

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 ,

Wanrouter status ; it should show connected
type dahdi_cfg -vv this shows does the card configured properly or not , shows the channels configured
go to asterisk cli
asterisk -vvvvr
dahdi show status
dahdi show channels
pri show spans