darrenchwu wrote:
我也剛好有520GU,可以問一下要刷什麼ROM才有Asterisk?或是該怎麼做?
How to Install Asterisk on an Asus WL-520GU Router
IP PBX ASUS WL-520GU 改裝篇-Tomato
把外線A移到第四Port ,第三Port空著來撥打電話也可撥出,來電顯示也是外線A的號碼,
我把3、4Port空著只插了外線B、C在1、2Port來撥打電話確是一直忙線中,外線B、C插3、4Port
撥出電話也只有外線B能撥出,第二人要撥出也不會跑外線C而是直接語音 '忙線中"(不是busy Tone音)
進到asterisk CLI就會一直跳出
== Starting DTMF CID detection on channel 2
-- Starting simple switch on 'DAHDI/2-1'
== Starting DTMF CID detection on channel 1
-- Starting simple switch on 'DAHDI/1-1'
-- Hanging up on 'DAHDI/2-1'
-- Hungup 'DAHDI/2-1'
-- Hanging up on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
== Starting DTMF CID detection on channel 2
-- Starting simple switch on 'DAHDI/2-1'
== Starting DTMF CID detection on channel 1
-- Starting simple switch on 'DAHDI/1-1'
-- Hanging up on 'DAHDI/2-1'
-- Hungup 'DAHDI/2-1'
-- Hanging up on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
-------------分隔線---------------------
已順利解決,某些外線雜訊比較大被誤判成有來電,修改dtmfcidlevel=880就OK了
流星墜落要3秒,月亮升起要1天,地球公轉要1年,但我不知道,等待心愛人回來,究竟要多久?
新增「瑪凱(IPBB) SIP Trunk 設定」及「特定的SIP Trunk直接撥入特定的分機」於1樓後段.
=================================================================================
一、瑪凱(IPBB) SIP Trunk 設定.
Outgoing Settings
username=<sip_number>
type=peer
secret=<password>
qualify=yes
insecure=invite,port
host=210.244.221.240
disallow=all
allow=g729
Incoming Settings
username=<sip_number>
type=user
insecure=invite,port
host=msw1.mky.com
fromuser=<sip_number>
fromdomain=msw1.mky.com
Register String
<sip_number>:<password>@msw1.mky.com/<sip_number>
上面紅色字為DID Number
二、特定的SIP Trunk直接撥入特定的分機.
1.於Inboud Routes/Add Incoming Route填入上面SIP Trunk設定的DID Number.
2.於Set Destination/Extensions選擇欲直通的分機.
新增「將TDM400P的4個FXO Port分群並籍由撥號前置碼指定外撥路由」於1樓後段.
籍由撥號前置碼('91' ~ '94')選擇 FXO-01~04 界接之外線撥出.
=================================================================================
一、修改'dahdi-channels.conf'檔.
PBX/Tools/Asterisk File Editor --> 'dahdi-channels.conf'
; Autogenerated by /usr/sbin/dahdi_genconf on Tue Jan 17 11:02:10 2012
; 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
;
; Span 1: WCTDM/4 "Wildcard S400P Prototype Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1 --> 原預設值為 '0'
context=from-pstn
channel => 2
callerid=
group=
context=default
;;; line="3 WCTDM/4/2 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=2 --> 原預設值為 '0'
context=from-pstn
channel => 3
callerid=
group=
context=default
;;; line="4 WCTDM/4/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=3 --> 原預設值為 '0'
context=from-pstn
channel => 4
callerid=
group=
context=default
二、設定PBX/PBX Configuration/Trunks/Add Zap Trunk (DAHDI compatibility mode).
Channel g0(ZAP)
Trunk Name:ZAP Channel g0
Zap Identifier:g0
Channel g1(ZAP)
Trunk Name:Channel g1
Zap Identifier:g1
Channel g2(ZAP)
Trunk Name:Channel g2
Zap Identifier:g2
Channel g3(ZAP)
Trunk Name:Channel g3
Zap Identifier:g3
三、設定PBX/PBX Configuration/Outbound Routes.
91_outside
Route Name:91_outside
prefix=91/match pattern=.
Trunk Sequence for Matched Routes '0'=ZAP/g0
92_outside
Route Name:92_outside
prefix=92/match pattern=.
Trunk Sequence for Matched Routes '0'=Channel g1
93_outside
Route Name:93_outside
prefix=93/match pattern=.
Trunk Sequence for Matched Routes '0'=Channel g2
94_outside
Route Name:94_outside
prefix=94/match pattern=.
Trunk Sequence for Matched Routes '0'=Channel g3
大功告成
關閉廣告