標題:
TDM400P PSTN-In and PSTN-out Settings
[打印本頁]
作者:
角色
時間:
2010-8-28 17:50
標題:
TDM400P PSTN-In and PSTN-out Settings
本帖最後由 角色 於 2010-8-29 16:31 編輯
假如我们有两个FXO ports,分别插入TDM400P的slot-1 and -2。
1)把 /etc/asterisk/dahdi-channels.conf的context=from-pstn更改
; Autogenerated by /usr/sbin/dahdi_genconf on Sat Aug 28 12:17:06 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"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn-1
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn-2
channel => 2
callerid=
group=
context=default
複製代碼
extensions.conf
;To-PSTN
[To-PSTN-1]
exten => _9.,1,Dial(DAHDI/1/${EXTEN:1},,)
[To-PSTN-2]
;exten => _8.,1,Dial(DAHDI/2/${EXTEN:1},,)
[internal]
include => To-PSTN-1
include => To-PSTN-2
exten => 6001,1,Dial(SIP/6001,,r)
exten => 6002,1,Dial(SIP/6002,,r)
[from-pstn-1]
exten => s,1,Dial(SIP/6001,,)
[from-pstn-2]
exten => s,1,Dial(SIP/6002,,)
複製代碼
在dahdi-channels.conf,为什么有两个context呢?
原来第一context是我们平时用的context,就是有人打电话进来时,去哪里。第二个context,如果在第一个context在extensions.conf找不到的时候,就会找这个default(在extensions.conf 里的default context)。
角色
歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/)
Powered by Discuz! 7.2