Страница 1 из 1

chan_dahdi.conf

Добавлено: 31 янв 2013, 09:07
alexborodach
есть asteroid на 30 портов для внешних городских линий.
соответственно прописано в etc\dahdi\system.conf
dynamic=eth,eth2/00:55:55:55:55:01,30,1
fxsls=1-30
alaw=1-60

dahdi_scan показывает что всё ок, есть 30 портов.
dahdi_monitor 22 -vv при входящем звонке показывает активность на канале

chan_dahdi.conf
[channels]

language=ru
usecallerid=no
hidecallerid=no
cidstart=ring
callwaiting=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
relaxdtmf=yes
busydetect=yes
busycount=3
pulsedial=no
alaw=1-30
context = from_pstn
signalling=fxs_ls

[PSTN_xxxxxx]
dahdichan = 1
context = from_pstn_xxx

[PSTN_xxxxxx]
dahdichan = 2
context = from_pstn_xxx

... так далее

при выполнении
module reload chan_dahdi.so

...
[Jan 31 11:01:16] WARNING[5877]: chan_dahdi.c:12834 mkintf: Attempt to configure channel 21 with signaling Unknown signalling -1 ignored because it is already configured to be FXS Loopstart.
-- Reconfigured channel 21, FXS Loopstart signalling
Jan 31 11:01:16] ERROR[5877]: chan_dahdi.c:17057 build_channels: Unable to reconfigure channel '22'
[Jan 31 11:01:16] WARNING[5877]: chan_dahdi.c:19122 reload: Reload of chan_dahdi.so is unsuccessful!

Подскажите пожалуйста, что ему может не нравится.

Re: chan_dahdi.conf

Добавлено: 31 янв 2013, 09:35
awsswa
dahdi_cfg -vvvv

Re: chan_dahdi.conf

Добавлено: 31 янв 2013, 09:46
alexborodach
[x@y~]# dahdi_cfg -vvvv
DAHDI Tools Version - 2.6.1

DAHDI Version: 2.6.1
Echo Canceller(s): HWEC, OSLEC
Configuration
======================

Dynamic span 1: driver eth, addr eth2/00:55:55:55:55:01, channels 30, timing 1

Channel map:

Channel 01: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 03)
Channel 04: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 04)
Channel 05: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 05)
Channel 06: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 06)
Channel 07: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 07)
Channel 08: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 08)
Channel 09: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 09)
Channel 10: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 10)
Channel 11: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 11)
Channel 12: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 12)
Channel 13: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 13)
Channel 14: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 14)
Channel 15: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 15)
Channel 16: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 16)
Channel 17: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 17)
Channel 18: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 18)
Channel 19: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 19)
Channel 20: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 20)
Channel 21: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 21)
Channel 22: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 22)
Channel 23: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 23)
Channel 24: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 24)
Channel 25: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 25)
Channel 26: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 26)
Channel 27: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 27)
Channel 28: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 28)
Channel 29: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 29)
Channel 30: FXS Loopstart (A-law) (Echo Canceler: oslec) (Slaves: 30)

30 channels to configure.

DAHDI dynamic span creation failed: File exists
[x@y~]#

Re: chan_dahdi.conf

Добавлено: 31 янв 2013, 10:28
awsswa
cat /etc/dahdi/modules
cat /etc/dahdi/system.conf
cat /etc/dahdi/init.conf

Re: chan_dahdi.conf

Добавлено: 31 янв 2013, 11:01
alexborodach
awsswa писал(а):cat /etc/dahdi/modules
cat /etc/dahdi/system.conf
cat /etc/dahdi/init.conf
1, 3 - у меня их вообще нет
2 - было полностью в моем первом посте, там всего 3 строки.

Так как руководство сказало срочно, то:
service asterisk restart
и вуаля все каналы видны.
Исходя из этого я делаю вывод, что эта ситуация - баг.

P.S. asterisk 10.12.0

Re: chan_dahdi.conf

Добавлено: 31 янв 2013, 11:29
awsswa
Странно, вы когда dahdi собирали видать дальше make install не пошли. А там еще команды для создания конфига есть.