Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2015-10-19 15:48:33 +0400

nlcd Gravatar nlcd

китайский tdm410+chan_dahdi

Помогите, не могу понять в чем проблема... с dahdi ранее не работал, щас вот купил карту китайскую с 4мя FXO. сам dahdi вроде бы все нормально видит:

# dahdi_cfg -vvvv
DAHDI Tools Version - 2.10.2

DAHDI Version: 2.10.2 Echo
Canceller(s): OSLEC, MG2 Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2



# find /dev/dahdi/ 
/dev/dahdi/ 
/dev/dahdi/4 
/dev/dahdi/3 
/dev/dahdi/2
/dev/dahdi/devices
/dev/dahdi/devices/@PCI /dev/dahdi/1
/dev/dahdi/chan /dev/dahdi/chan/001
/dev/dahdi/chan/001/004
/dev/dahdi/chan/001/003
/dev/dahdi/chan/001/002
/dev/dahdi/chan/001/001
/dev/dahdi/pseudo /dev/dahdi/channel
/dev/dahdi/timer /dev/dahdi/ctl




# lsdahdi 
### Span  1: WCTDM/0 "Wildcard TDM410P" (MASTER) 
      1 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  
      2 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED
      3 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED
      4 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED

создал файлик /etc/asterisk/dahdi-channels.conf с помощью dahdigenconf, добавил "#include /etc/asterisk/dahdi-channels.conf" в chandahdi.conf

но астерикс нивкакую не хочет загружать модуль

CLI> module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command 'module load chan_dahdi.so' failed.
[Oct 19 14:42:59] WARNING[2599]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendKeypadFacility'
[Oct 19 14:42:59] WARNING[2599]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendCallreroutingFacility'
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 2 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 2: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 3 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 3: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 4 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 4: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel -2 with signaling Unknown signalling -1 ignored because it is already configured to be Pseudo.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:4488 dahdi_open: Invalid channel number '0'
[Oct 19 14:42:59] ERROR[2599]: chan_dahdi.c:12682 mkintf: Unable to open channel 0: Success
here = 0, tmp->channel = 0, channel = 0
[Oct 19 14:42:59] ERROR[2599]: chan_dahdi.c:17385 build_channels: Unable to register channel '0'

много гуглил, ниче толком понять не могу, откуда он в принципе берет нулевой канал - не понимаю, если они с 1 начинаются в файле конфига...

Может сломанная карта? но почему тогда сам dahdi нормально все видит...

китайский tdm410+chan_dahdi

Помогите, не могу понять в чем проблема... с dahdi ранее не работал, щас вот купил карту китайскую с 4мя FXO. сам dahdi вроде бы все нормально видит:

# dahdi_cfg -vvvv
DAHDI Tools Version - 2.10.2

DAHDI Version: 2.10.2 Echo
Canceller(s): OSLEC, MG2 Configuration
======================


Channel map:

Channel 01: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 01)
Channel 02: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 02)
Channel 03: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 03)
Channel 04: FXS Kewlstart (Default)
(Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2



# find /dev/dahdi/ 
/dev/dahdi/ 
/dev/dahdi/4 
/dev/dahdi/3 
/dev/dahdi/2
/dev/dahdi/devices
/dev/dahdi/devices/@PCI /dev/dahdi/1
/dev/dahdi/chan /dev/dahdi/chan/001
/dev/dahdi/chan/001/004
/dev/dahdi/chan/001/003
/dev/dahdi/chan/001/002
/dev/dahdi/chan/001/001
/dev/dahdi/pseudo /dev/dahdi/channel
/dev/dahdi/timer /dev/dahdi/ctl




# lsdahdi 
### Span  1: WCTDM/0 "Wildcard TDM410P" (MASTER) 
      1 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  
      2 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED
      3 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED
      4 FXO        FXSKS       (In use) (EC: MG2 - INACTIVE)  RED

создал файлик /etc/asterisk/dahdi-channels.conf с помощью dahdigenconf, добавил "#include /etc/asterisk/dahdi-channels.conf" в chandahdi.conf

но астерикс нивкакую не хочет загружать модуль

CLI> module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command 'module load chan_dahdi.so' failed.
[Oct 19 14:42:59] WARNING[2599]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendKeypadFacility'
[Oct 19 14:42:59] WARNING[2599]: pbx.c:7327 ast_register_application2: Already have an application 'DAHDISendCallreroutingFacility'
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 2 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 2: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 3 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 3: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel 4 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:8048 handle_alarms: Detected alarm on channel 4: Red Alarm
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:13034 mkintf: Attempt to configure channel -2 with signaling Unknown signalling -1 ignored because it is already configured to be Pseudo.
[Oct 19 14:42:59] WARNING[2599]: chan_dahdi.c:4488 dahdi_open: Invalid channel number '0'
[Oct 19 14:42:59] ERROR[2599]: chan_dahdi.c:12682 mkintf: Unable to open channel 0: Success
here = 0, tmp->channel = 0, channel = 0
[Oct 19 14:42:59] ERROR[2599]: chan_dahdi.c:17385 build_channels: Unable to register channel '0'

много гуглил, ниче толком понять не могу, откуда он в принципе берет нулевой канал - не понимаю, если они с 1 начинаются в файле конфига...

Может сломанная карта? но почему тогда сам dahdi нормально все видит...

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.