| 點解一直fxo無反應無論打出打入都系因為自己自作聰明把fxo設了sip ext!fox是不用設sip ext只要fxs設了然后 ...dreamy2k 發表於 2010-9-19 09:38
 
 哈哈!因为我不用GUI,所以打出打入非常清晰的。下面就是一些settings。注意在dahdi_genconf的context(如果打入来去哪里),那么在extensions就要跟随。
 
 在/etc/asterisk/dadhi-channels.conf
 /etc/asterisk/extensions.conf複製代碼; Autogenerated by /usr/sbin/dahdi_genconf on Sun Aug 29 15:00:16 2010
; 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 TDM400P REV I Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS  (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn-1
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS  (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn-2
channel => 2
callerid=
group=
context=default
複製代碼[trunk-PSTN-1]
exten => _9.,1,Dial(DAHDI/1/${EXTEN:1},,)
[trunk-PSTN-2]
exten => _8.,1,Dial(DAHDI/2/${EXTEN:1},,)
[internal]
include => trunk-PSTN-1
include => trunk-PSTN-2
exten => 3001,1,Dial(SIP/3001,,r)
exten => 3002,1,Dial(SIP/3002,,r)
[from-pstn-1]
exten => s,1,Dial(SIP/3001,,)
[from-pstn-2]
exten => s,1,Dial(SIP/3002,,)
 |