Приветствую всех! Я в телефонии новичок и возникла проблема с настройкой:
имеется сервер на CentOS 6.4 с FXO/FXS картой OpenVox A400P. Из исходников установил FreeSwitch и Dahdi. Dahdi настраивал по этой инструкции (
http://downloads.openvox.cn/pub/manuals/V2.2/English/A800P_on_DAHDI_User_Manual.pdf).Когда поднимаю трубку, гудка нет, однако звонки на тестовые номера (9664, 9192, 5000 и т.д.) идут. Связаться с городскими номерами не получается. Я так понял, что нужно настраивать dialplan, перечитал вики, но так и не разобрался (хотя, может у меня просто руки не оттуда растут
).
Текущая конфигурация выглядит так:
[+] conf/public/00_inbound_did.xml Код:
<include>
<extension name="public_did">
<condition field="destination_number" expression="^\+?7?8?84xxxxxxxx$">
<action application="set" data="domain_name=$${domain}"/>
<action application="transfer" data="1000 XML default"/>
</condition>
</extension>
</include>
Код:
; !! THIS IS A SAMPLE CONFIGURATION ONLY !!
; refer to http://wiki.freeswitch.org/wiki/FreeTDM for further documentation
[general]
; whether to launch a thread for CPU usage monitoring
cpu_monitor => yes
; How often (in milliseconds) monitor CPU usage
cpu_monitoring_interval => 1000
; At what CPU percentage raise a CPU alarm
cpu_set_alarm_threshold => 80
; At what CPU percentage stop the CPU alarm
cpu_clear_alarm_threshold => 90
; Which action to take when the CPU alarm is raised
; it can be warn and/or reject calls
; cpu_alarm_action => warn,reject
cpu_alarm_action => warn
; spans are defined with [span <span type> <span name>]
; the span type can either be zt, wanpipe or pika
; the span name can be any unique string
; IO stats. Defaults to yes, you can print the stats with ftdm iostats print <span> <chan>
; This feature depends on the span IO type, currently only Wanpipe spans support it
; This may cause a warning to be printed once in a while if audio is not provided fast enough
; and causes the driver to transmit an idle frame (when there is no data provided by the application)
iostats => yes
[span zt myFXS]
name => myFXS
trunk_type => FXS
group => 1
rxgain => 3.5
txgain => 6.5
;number => 1234
fxs-channel => 1
fxs-channel => 2
fxs-channel => 3
fxs-channel => 4
fxs-channel => 5
[span zt myFXO]
name => myFXS
group => 1
trunk_type = FXO
rxgain => 6.5
txgain => 3.5
; This number will be used as DNIS for FXO devices
number => 1010
fxo-channel => 6
fxo-channel => 7
fxo-channel => 8
[+] /etc/dahdi/system.conf Код:
# Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 4 10:40:36 2013
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: OPVXA1200/12 "OpenVox A1200P/A800P Board 13" (MASTER)
fxols=1
echocanceller=oslec,1
fxols=2
echocanceller=oslec,2
fxols=3
echocanceller=oslec,3
fxols=4
echocanceller=oslec,4
fxols=5
echocanceller=oslec,5
fxsls=6
echocanceller=oslec,6
fxsls=7
echocanceller=oslec,7
fxsls=8
echocanceller=oslec,8
# Global data
loadzone = ru
defaultzone = ru
[+] /etc/asterisk/dahdi-channels.conf Код:
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Oct 4 10:40:36 2013
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
echotraining=no
; Span 1: OPVXA1200/12 "OpenVox A1200P/A800P Board 13" (MASTER)
;;; line="1 OPVXA1200/12/0 FXOKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxo_ls
callerid="Channel 1" <4001>
mailbox=4001
group=5
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default
;;; line="2 OPVXA1200/12/1 FXOKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxo_ls
callerid="Channel 2" <4002>
mailbox=4002
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default
;;; line="3 OPVXA1200/12/2 FXOKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxo_ls
callerid="Channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
;;; line="4 OPVXA1200/12/3 FXOKS (In use) (EC: OSLEC - ACTIVE)"
signalling=fxo_ls
callerid="Channel 4" <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default
;;; line="5 OPVXA1200/12/4 FXOKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxo_ls
callerid="Channel 5" <4005>
mailbox=4005
group=5
context=from-internal
channel => 5
callerid=
mailbox=
group=
context=default
;;; line="6 OPVXA1200/12/5 FXSKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxs_ls
callerid=asreceived
group=0
context=from-pstn
channel => 6
callerid=
group=
context=default
;;; line="7 OPVXA1200/12/6 FXSKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxs_ls
callerid=asreceived
group=0
context=from-pstn
channel => 7
callerid=
group=
context=default
;;; line="8 OPVXA1200/12/7 FXSKS (In use) (EC: OSLEC - INACTIVE)"
signalling=fxs_ls
callerid=asreceived
group=0
context=from-pstn
channel => 8
callerid=
group=
context=default
freeswitch@plfs0> 2013-10-04 14:10:00.223253 [INFO] ftmod_zt.c:671 Setting echo cancel to 64 taps for 1:4
2013-10-04 14:10:07.143256 [NOTICE] switch_channel.c:976 New Channel FreeTDM/1:4/555555 [250180d8-2cdd-11e3-9bcf-0114cf2d2dbc]
2013-10-04 14:10:07.143256 [INFO] mod_dialplan_xml.c:557 Processing myFXS <0000000000>->555555 in context default
2013-10-04 14:10:07.143256 [NOTICE] switch_ivr.c:1797 Transfer FreeTDM/1:4/555555 to enum[555555@default]
2013-10-04 14:10:07.543254 [NOTICE] switch_core_state_machine.c:262 FreeTDM/1:4/555555 has executed the last dialplan instruction, hanging up.
2013-10-04 14:10:07.543254 [NOTICE] switch_core_state_machine.c:264 Hangup FreeTDM/1:4/555555 [CS_EXECUTE] [NORMAL_CLEARING]
2013-10-04 14:10:07.563262 [NOTICE] switch_core_session.c:1536 Session 1 (FreeTDM/1:4/555555) Ended
2013-10-04 14:10:07.563262 [NOTICE] switch_core_session.c:1540 Close Channel FreeTDM/1:4/555555 [CS_DESTROY]