[root@pbx]~# LC_ALL=C minicom -s
            +-----[configuration]------+
            | Filenames and paths      |
            | File transfer protocols  |
--->        | Serial port setup        |
            | Modem and dialing        |
            | Screen and keyboard      |
            | Save setup as dfl        |
            | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+
    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/ttyUSB0                              |
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 38400 8N1                                 |
    | F - Hardware Flow Control : No                                        |
    | G - Software Flow Control : No                                        |
    |                                                                       |
    |    Change which setting?                                              |
    +-----------------------------------------------------------------------+
            +-----[configuration]------+
            | Filenames and paths      |                  +-----------------------------------------+
            | File transfer protocols  |                  |Give name to save this configuration?    |
            | Serial port setup        |                  |> asteroid                               |
            | Modem and dialing        |                  +-----------------------------------------+
            | Screen and keyboard      |
            | Save setup as dfl        |
----->      | Save setup as..          |
            | Exit                     |
            | Exit from Minicom        |
            +--------------------------+
[root@pbx]~# LC_ALL=C minicom asteroid
Asteroid monitor, v2.2 30/03/2010, Updates: http://parabel.ru/
Firmware: Asteroid{0xB}, Revision: 0x3, Temperature(C): 38
E1/A Cfg: Line code=HDB3, Clock=Internal, CRC4=On
Slots {0: ALaw,FXS  1: ALaw,FXO  2: ALaw,FXS  3: ALaw,FXS}
E1/A status: LOS=Off, LOF=Off, LOM=Off, LOC=Off, RAIS=Off, FrErr=0/0
TDMoE {status : SkipEr=0, SlipEr=65535, RxNuEr=0}
MAC src: 005555555500, dst: 000000000000
                 1 3 5 7 9 1 3 5 7 9 1 3 5 7 9 1
FXO/FXS state:   ...............................
1. Configuration >>
2. Status >>
3. Test >>
8. Start bootloader
9. Reset
нажимаем 1
Configuration: 1. Common >> 2. E1/A >> 4. Slots >> 5. Coding law >> 7. Factory 8. Restore 9. Save 0. Quit
нажимаем 1
Configuration/Common: 1. VCO: 0x0 2. MAC: 005555555500 3. DST MAC: 6805CA0DEF50 4. EC: On 5. E1: Off 0. Quit
нажимаем 3 и вбиваем mac-адрес сетевухи с которой будет идти общение с астероидом, вбиваем без двоеточий маленькими буквами
затем нажимаем 0
Configuration: 1. Common >> 2. E1/A >> 4. Slots >> 5. Coding law >> 7. Factory 8. Restore 9. Save 0. Quit
нажимаем 9 для сохранения конфига
для выхода из minicom нажимаем Ctrl+A X Enter
/etc/dahdi/system.conf #Asteroid-1L3S with factory defaults example. #Asteroid defaults: VCO=0, Clock Source=Int, DST MAC=000000000000, ALAW, E1: Off #Asteroid used as a timing source for DAHDI. dynamic=eth,eth1/00:55:55:55:55:00,30,1 fxols=1-7 fxsls=8-15 fxols=16-22 fxols=23-30 alaw=1-30 #echocanceller=mg2,1-30 #echocanceller=oslec,1-30 loadzone=ru defaultzone=ru
перезапускаем сервис
service dahdi start
Проверяем статус связи asterisk с банком каналов asteroid, Alarms должно быть OK и на банке каналов должна погаснуть лампочка Alarms.
dahdi_tool ┌─────────────────────┤ DAHDI Telephony Interfaces ├─────────────────────┐ │ │ │ Alarms Span │ │ OK Dynamic 'eth' span at 'eth1/00:55:55:55 ↑ │ │ ▒ │ │ ▮ │ │ ↓ │ │ │ │ │ │ ┌────────┐ ┌──────┐ │ │ │ Select │ │ Quit │ │ │ └────────┘ └──────┘ │ │ │ └────────────────────────────────────────────────────────────────────────┘
Переходим к настройке самих портов.
/etc/asterisk/chan_dahdi.conf [trunkgroups] [channels] ;relaxdtmf=yes ;necessary on bad lines only... rxflash=850 ;flash is an ONHOOK < rxflash busydetect=yes busycount=3 pulsedial=no pulse=yes callwaiting=yes threewaycalling=yes transfer=yes cancallforward=yes usecallerid=yes callerid=asreceived hidecallerid=no ;;callwaitingcallerid=yes useincomingcalleridonzaptransfer=yes cidsignalling=bell cidstart=ring restrictcid=no callreturn=yes echocancel=no echotraining=no echocancelwhenbridged=no context=from-internal signalling=fxo_ls channel=1-7,16-23,24-30 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>8 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>9 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>10 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>11 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>12 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>13 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>14 context=from-zaptel signalling=fxs_ls callerid=5701919 group=0 channel=>15 #include dahdi-channels.conf #include chan_dahdi_additional.conf
 
							
 В предыдущей статье мы рассказывали о том как установить
В предыдущей статье мы рассказывали о том как установить 
