Ставлю * с двухканальной платой E1 Parabel Quasar mini в разрыв существующего потока от провайдера до моей АТС LG LDK-300.
Настройки сразу хочу делать уже через FreePBX. Соответственно через него настроил DAHDI (скачанный с парабелла). Статус в dahdi_tool нормальный - ОК.
как настроить транк через freepbx так не понял, поэтому делал через custom extension
в /etc/extension_custom.conf
Код: Выделить всё
[from-ats]
exten=>_.,1,Dial(DAHDI/g1/${EXTEN})
exten=>_.,n,Hangup()
[from-e1]
exten=>_.,1,Dial(DAHDI/g0/${EXTEN})
exten=>_.,n,Hangup()
Код: Выделить всё
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[general]
; generated by module
#include chan_dahdi_general.conf
; for user additions not provided by module
#include chan_dahdi_general_custom.conf
[channels]
language=en
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=no
immediate=no
faxdetect=yes
rxgain=0.0
txgain=0.0
overlapdial=yes
; for user additions not provided by module
#include chan_dahdi_channels_custom.conf
; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
Код: Выделить всё
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
; [span_1]
signalling=pri_cpe
switchtype=national
pridialplan=national
prilocaldialplan=unknown
group=0
context=from-e1
channel=1-15,17-31
priexclusive=no
; [span_2]
signalling=pri_net
switchtype=national
pridialplan=national
prilocaldialplan=unknown
group=1
context=from-ats
channel=32-46,48-62
priexclusive=no
Код: Выделить всё
#--------------------------------------------------------------------------------;
# Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
# this file must be done via the web gui. There are alternative files to make ;
# custom modifications, details at: http://freepbx.org/configuration_files ;
#--------------------------------------------------------------------------------;
#
span=1,1,0,CCS,HDB3,CRC4
span=2,0,0,CCS,HDB3
bchan=1-15,17-31,32-46,48-62
dchan=16,47
loadzone=us
defaultzone=us
ну и собственно при вызове из атс лог
Код: Выделить всё
-- Accepting overlap call from '28' to '<unspecified>' on channel 0/31, span 2
-- Starting simple switch on 'DAHDI/i2/28-1'
-- Executing [89111111111@from-ats:1] Dial("DAHDI/i2/28-1", "DAHDI/g1/89111111111") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called DAHDI/g1/89111111111
-- DAHDI/i2/89111111111-2 is making progress passing it to DAHDI/i2/28-1
-- DAHDI/i2/89111111111-2 is proceeding passing it to DAHDI/i2/28-1
-- DAHDI/i2/89111111111-2 is ringing
-- DAHDI/i2/89111111111-2 answered DAHDI/i2/28-1
-- Span 2: Channel 0/31 got hangup request, cause 16
-- Executing [h@from-ats:1] Dial("DAHDI/i2/28-1", "DAHDI/g1/h") in new stack
-- Requested transfer capability: 0x00 - SPEECH
[2013-02-19 07:50:35] WARNING[7807][C-00000084]: sig_pri.c:7953 sig_pri_call: Unrecognized pridialplan NPI modifier: h
-- Called DAHDI/g1/h
-- Hungup 'DAHDI/i2/-3'
== Spawn extension (from-ats, h, 1) exited non-zero on 'DAHDI/i2/28-1'
-- Hungup 'DAHDI/i2/89111111111-2'
== Spawn extension (from-ats, 89111111111, 1) exited non-zero on 'DAHDI/i2/28-1'
-- Hungup 'DAHDI/i2/28-1'
-- Accepting overlap call from '28' to '<unspecified>' on channel 0/31, span 2
-- Starting simple switch on 'DAHDI/i2/28-4'
-- Span 2: Channel 0/31 got hangup request, cause 16
-- Hungup 'DAHDI/i2/28-4'
-- Accepting call from '28' to '89111111111' on channel 0/31, span 2
-- Executing [89111111111@from-ats:1] Dial("DAHDI/i2/28-5", "DAHDI/g1/89111111111") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called DAHDI/g1/89111111111
-- DAHDI/i2/89111111111-6 is making progress passing it to DAHDI/i2/28-5
-- DAHDI/i2/89111111111-6 is proceeding passing it to DAHDI/i2/28-5
-- DAHDI/i2/89111111111-6 is ringing
-- DAHDI/i2/89111111111-6 answered DAHDI/i2/28-5
-- Span 2: Channel 0/31 got hangup request, cause 16
-- Executing [h@from-ats:1] Dial("DAHDI/i2/28-5", "DAHDI/g1/h") in new stack
-- Requested transfer capability: 0x00 - SPEECH
[2013-02-19 07:51:18] WARNING[7810][C-00000086]: sig_pri.c:7953 sig_pri_call: Unrecognized pridialplan NPI modifier: h
-- Called DAHDI/g1/h
-- Hungup 'DAHDI/i2/-7'
== Spawn extension (from-ats, h, 1) exited non-zero on 'DAHDI/i2/28-5'
-- Hungup 'DAHDI/i2/89111111111-6'
== Spawn extension (from-ats, 89111111111, 1) exited non-zero on 'DAHDI/i2/28-5'
-- Hungup 'DAHDI/i2/28-5'
Код: Выделить всё
[2013-02-19 07:53:45] NOTICE[7788]: chan_dahdi.c:3234 my_handle_dchan_exception: PRI got event: HDLC Bad FCS (8) on D-channel of span 1
-- Accepting overlap call from '89111111111' to '303028' on channel 0/1, span 1
-- Starting simple switch on 'DAHDI/i1/89111111111-1'
-- Executing [303028@from-e1:1] Dial("DAHDI/i1/89111111111-1", "DAHDI/g0/305128") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called DAHDI/g0/303028
-- DAHDI/i1/303028-2 is making progress passing it to DAHDI/i1/89111111111-1
[2013-02-19 07:54:25] NOTICE[7788]: chan_dahdi.c:3234 my_handle_dchan_exception: PRI got event: HDLC Abort (6) on D-channel of span 1
-- Span 1: Channel 0/1 got hangup request, cause 102
-- Hungup 'DAHDI/i1/303028-2'
== Spawn extension (from-e1, 303028, 1) exited non-zero on 'DAHDI/i1/89111111111-1'
-- Executing [h@from-e1:1] Dial("DAHDI/i1/89111111111-1", "DAHDI/g0/h") in new stack
-- Requested transfer capability: 0x00 - SPEECH
[2013-02-19 07:54:36] WARNING[7846][C-00000087]: sig_pri.c:7953 sig_pri_call: Unrecognized pridialplan NPI modifier: h
-- Called DAHDI/g0/h
-- Hungup 'DAHDI/i1/-3'
== Spawn extension (from-e1, h, 1) exited non-zero on 'DAHDI/i1/89111111111-1'
-- Hungup 'DAHDI/i1/89111111111-1'
поиском нашёл что надо overlapdial ставить в yes, для передачи тонов. пробовал ещё ISDN ENBLCK SEND ставить в ON на LDK.
подскажите пожалуйста в чём ещё может быть дело