Re: Проблема с настройкой TDM844
Вот, смотри, копайся, оно работало:
cat zapata.conf
[trunkgroups]
[channels]
echocancel=no
echocancelwhenbridged=no
faxdetect=incoming
echotraining=800
rxgain=-10
txgain=0.0
;Uncomment these lines if you have problems with the disconection of your analog lines
;busydetect=yes
;busycount=3
immediate=no
#include zapata_additional.conf
#include zapata-channels.conf
cat zapata_additional.conf
; do not edit this file, this is an auto-generated file by freepbx
; all modifications must be done from the web gui
;;;;;;[2000]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2000@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=no
dial=ZAP/1
context=Managers
callprogress=no
callerid=device <2000>
busydetect=no
busycount=7
accountcode=
channel=>1
;;;;;;[2001]
signalling=fxo_ks
record_out=Always
record_in=Always
mailbox=2001@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/2
context=Managers
callprogress=no
callerid=device <2001>
busydetect=no
busycount=7,pickupgroup=1
accountcode=
channel=>2
;;;;;;[2002]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2002@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/3
context=Managers
callprogress=no
callerid=device <2002>
busydetect=no
busycount=7
accountcode=
channel=>3
;;;;;;[2003]
signalling=fxo_ks
record_out=Always
record_in=Always
mailbox=2003@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/4
context=Managers
callprogress=no
callerid=device <2003>
busydetect=no
busycount=7
accountcode=
channel=>4
;;;;;;[2004]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2004@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/5
context=Managers
callprogress=no
callerid=device <2004>
busydetect=no
busycount=7
accountcode=
channel=>5
;;;;;;[2005]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2005@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/6
context=Managers
callprogress=no
callerid=device <2005>
busydetect=no
busycount=7
accountcode=
channel=>6
;;;;;;[2006]
signalling=fxo_ks
record_out=Always
record_in=Always
mailbox=2006@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/7
context=Managers
callprogress=no
callerid=device <2006>
busydetect=no
busycount=7
accountcode=
channel=>7
;;;;;;[2007]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2007@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/8
context=Managers
callprogress=no
callerid=device <2007>
busydetect=no
busycount=7
accountcode=
channel=>8
;;;;;;[2008]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2008@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/15
context=Managers
callprogress=no
callerid=device <2008>
busydetect=no
busycount=7
accountcode=
channel=>15
;;;;;;[2009]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2009@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/16
context=Managers
callprogress=no
callerid=device <2009>
busydetect=no
busycount=7
accountcode=
channel=>16
;;;;;;[2010]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2010@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/17
context=Managers
callprogress=no
callerid=device <2010>
busydetect=no
busycount=7
accountcode=
channel=>17
;;;;;;[2011]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2011@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/18
context=Managers
callprogress=no
callerid=device <2011>
busydetect=no
busycount=7
accountcode=
channel=>18
;;;;;;[2012]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2012@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/19
context=Managers
callprogress=no
callerid=device <2012>
busydetect=no
busycount=7
accountcode=
channel=>19
;;;;;;[2013]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2013@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/20
context=Managers
callprogress=no
callerid=device <2013>
busydetect=no
busycount=7
accountcode=
channel=>20
;;;;;;[2014]
signalling=fxo_ks
record_out=Always
record_in=Always
mailbox=2014@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/21
context=Managers
callprogress=no
callerid=device <2014>
busydetect=no
busycount=7
accountcode=
channel=>21
;;;;;;[2015]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2015@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/22
context=Managers
callprogress=no
callerid=device <2015>
busydetect=no
busycount=7
accountcode=
channel=>22
;;;;;;[2016]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2016@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/23
context=Managers
callprogress=no
callerid=device <2016>
busydetect=no
busycount=7
accountcode=
channel=>23
;;;;;;[2017]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2017@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/24
context=Managers
callprogress=no
callerid=device <2017>
busydetect=no
busycount=7
accountcode=
channel=>24
;;;;;;[2018]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2018@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/25
context=Managers
callprogress=no
callerid=device <2018>
busydetect=no
busycount=7
accountcode=
channel=>25
;;;;;;[2019]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2019@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/26
context=Managers
callprogress=no
callerid=device <2019>
busydetect=no
busycount=7
accountcode=
channel=>26
;;;;;;[2020]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2020@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/27
context=Managers
callprogress=no
callerid=device <2020>
busydetect=no
busycount=7
accountcode=
channel=>27
;;;;;;[2021]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2021@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/28
context=Managers
callprogress=no
callerid=device <2021>
busydetect=no
busycount=7
accountcode=
channel=>28
;;;;;;[2022]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2022@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/29
context=Managers
callprogress=no
callerid=device <2022>
busydetect=no
busycount=7
accountcode=
channel=>29
;;;;;;[2023]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=2023@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
dial=ZAP/30
context=Managers
callprogress=no
callerid=device <2023>
busydetect=no
busycount=7
accountcode=
channel=>30
cat zapata-channels.conf
; Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;
; Span 1: XBUS-00/XPD-00 "Xorcom XPD #00/00: FXS" (MASTER)
;;; line="1 XPP_FXS/00/00/0"
;;; line="2 XPP_FXS/00/00/1"
;;; line="3 XPP_FXS/00/00/2"
;;; line="4 XPP_FXS/00/00/3"
;;; line="5 XPP_FXS/00/00/4"
;;; line="6 XPP_FXS/00/00/5"
;;; line="7 XPP_FXS/00/00/6"
;;; line="8 XPP_FXS/00/00/7"
;;; line="9 XPP_OUT/00/00/8"
;;; line="10 XPP_OUT/00/00/9"
;;; line="11 XPP_IN/00/00/10"
;;; line="12 XPP_IN/00/00/11"
;;; line="13 XPP_IN/00/00/12"
;;; line="14 XPP_IN/00/00/13"
; Span 2: XBUS-00/XPD-10 "Xorcom XPD #00/10: FXS"
;;; line="15 XPP_FXS/00/10/0"
;;; line="16 XPP_FXS/00/10/1"
;;; line="17 XPP_FXS/00/10/2"
;;; line="18 XPP_FXS/00/10/3"
;;; line="19 XPP_FXS/00/10/4"
;;; line="20 XPP_FXS/00/10/5"
;;; line="21 XPP_FXS/00/10/6"
;;; line="22 XPP_FXS/00/10/7"
; Span 3: XBUS-00/XPD-20 "Xorcom XPD #00/20: FXS"
;;; line="23 XPP_FXS/00/20/0"
;;; line="24 XPP_FXS/00/20/1"
;;; line="25 XPP_FXS/00/20/2"
;;; line="26 XPP_FXS/00/20/3"
;;; line="27 XPP_FXS/00/20/4"
;;; line="28 XPP_FXS/00/20/5"
;;; line="29 XPP_FXS/00/20/6"
;;; line="30 XPP_FXS/00/20/7"
; Span 4: XBUS-00/XPD-30 "Xorcom XPD #00/30: FXO"
;;; line="31 XPP_FXO/00/30/0"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 31
context=default
;;; line="32 XPP_FXO/00/30/1"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 32
context=default
;;; line="33 XPP_FXO/00/30/2"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 33
context=default
;;; line="34 XPP_FXO/00/30/3"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 34
context=default
;;; line="35 XPP_FXO/00/30/4"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 35
context=default
;;; line="36 XPP_FXO/00/30/5"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 36
context=default
;;; line="37 XPP_FXO/00/30/6"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 37
context=default
;;; line="38 XPP_FXO/00/30/7"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 38
context=default
Вот. Это мой единственный опыт общения с аналоговыми зап портами. В эластиксе есть такая волшебная кнопочка в гуе - ее жмешь, запускается автоконфигурение девайсов, остается только ребутнуться, и все работает. а командой это делается genzaptelconf, кажется, c какими-то ключами.
|