Страница 2 из 3

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 15:31
Vlad1983

Код: Выделить всё

cat /etc/asterisk/chan_dahdi.conf

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 16:07
ded
1) есть ли инклюд файла dahdi-channels.conf в chan_dahdi.conf?
2) что говорит при командах
module unload chan_dahdi.so
module load chan_dahdi.so
??

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 16:08
soh

Код: Выделить всё

;[phones]
;echocancel = 64
;dahdichan = 1-8
;group = 1
;
; Is somewhat equivalent to the following snippet in the section
[channels]
;
#include /etc/asterisk/dahdi-channels.conf
echocancel = 64
group = 1
channel => 1-4
;
; When starting a new section almost all of the configuration values are
; copied from their values at the end of the section [channels] in
; chan_dahdi.conf and [general] in users.conf - one section's configuration
; does not affect another one's.
;
; Instead of letting common configuration values "slide through" you can
; use configuration templates to easily keep the common part in one
; place and override where needed.
;
;[phones](!)
;echocancel = yes
;group = 0,4
;callgroup = 3
;pickupgroup = 3
;threewaycalling = yes
;transfer = yes
;context = phones
;faxdetect = incoming
;
;[phone-1](phones)
;dahdichan = 1
;callerid = My Name <501>
;mailbox = 501@mailboxes
;
;
;[fax](phones)
;dahdichan = 2
;faxdetect = no
;context = fax
;
;[phone-3](phones)
;dahdichan = 3
;pickupgroup = 3,4

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 17:18
soh
Еще разз ввел. Смущает, что снизу написано. Жирным выделил

root@asterisk:/etc/asterisk# dahdi_cfg -vvvvvvvvvvvvvvvvv
DAHDI Tools Version - 2.4.1

DAHDI Version: 2.4.1
Echo Canceller(s):
Configuration
======================


Channel map:

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

4 channels to configure.

DAHDI_CHANCONFIG failed on channel 1: No such device or address (6)

После перезагрузки все стало опять по-прежнему.
Еще заметил одно. На карте горят лампочки (все 4 штуки)

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 17:42
ded
ded писал(а):2) что говорит при командах
module unload chan_dahdi.so
module load chan_dahdi.so
??

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 17:46
soh

Код: Выделить всё

asterisk*CLI> module unload chan_dahdi.so
Unloaded chan_dahdi.so
  == Unregistered application 'DAHDISendKeypadFacility'
  == Unregistered application 'DAHDISendCallreroutingFacility'
  == Unregistered application 'DAHDIAcceptR2Call'
  == Manager unregistered action DAHDIDialOffhook
  == Manager unregistered action DAHDIHangup
  == Manager unregistered action DAHDITransfer
  == Manager unregistered action DAHDIDNDoff
  == Manager unregistered action DAHDIDNDon
  == Manager unregistered action DAHDIShowChannels
  == Manager unregistered action DAHDIRestart
  == Unregistered channel type 'DAHDI'
    -- Unregistered channel -2
asterisk*CLI> module load chan_dahdi.so
Loaded chan_dahdi.so
  == Registered application 'DAHDISendKeypadFacility'
  == Registered application 'DAHDISendCallreroutingFacility'
  == Parsing '/etc/asterisk/chan_dahdi.conf':   == Found
  == Parsing '/etc/asterisk/dahdi-channels.conf':   == Found
  == Parsing '/etc/asterisk/users.conf':   == Found
    -- Automatically generated pseudo channel
[2014-06-19 17:46:28] WARNING[1434]: chan_dahdi.c:17433 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[2014-06-19 17:46:28] WARNING[1434]: chan_dahdi.c:17433 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[2014-06-19 17:46:28] WARNING[1434]: chan_dahdi.c:17433 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
[2014-06-19 17:46:28] WARNING[1434]: chan_dahdi.c:17433 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[2014-06-19 17:46:28] WARNING[1434]: chan_dahdi.c:17433 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
  == Registered channel type 'DAHDI' (DAHDI Telephony Driver w/PRI & SS7 & MFC/R2)
  == Registered application 'DAHDIAcceptR2Call'
  == Manager registered action DAHDITransfer
  == Manager registered action DAHDIHangup
  == Manager registered action DAHDIDialOffhook
  == Manager registered action DAHDIDNDon
  == Manager registered action DAHDIDNDoff
  == Manager registered action DAHDIShowChannels
  == Manager registered action DAHDIRestart
 Loaded chan_dahdi.so => (DAHDI Telephony Driver w/PRI & SS7 & MFC/R2)

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 18:07
ded
CLI> dahdi show channels ??
dnesg | grep DAHDI ??

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 18:08
Vlad1983
убрать из загрузки DAHDI_DUMMY и переконфигурячить

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 18:37
soh
Из-за него так все безобразно себя ведет? :(

Re: VoIP карты с Ali

Добавлено: 19 июн 2014, 18:38
Vlad1983
это
DAHDI_CHANCONFIG failed on channel 1: No such device or address (6)
точно из-за него