晴 ,19°
有个cisco 电话,折腾半天没弄明白,索性用phoneLite+耳麦
公司有两个号码,两根电话线接入fxo-1和fxo-2,其中fxo-2为传真
首先,实现分机互打
1、pbx-->extension
2、device---sip
3、user extension=分机号 secret=yourpassword
4、添加其它分机,步骤一样,很简单。。。
5、用phonelite测试一下
拨打外线(fxo-1)
1、添加trunk-->add dahdi trunk
2、trunk-name=fxo-1
outbound callerid=fxo-1
3、dahdi idenfilter=1(要对应fxo-1,具体可以去系统---hardware查看)
4、outbound routes--->
route name:fxo-1
route cid:fxo-1
Dial Patterns that will use this Route(这条路由的拨号规则)
如图,说明拨打号码:86xxxxxxx的时候,会使用这条路由
5、Trunk Sequence for Matched Routes
选择fxo-1,作为此路由对应板卡的接口
6、因为有两个号码,我们需要配置两个DID来区分呼入电话究竟匹配哪条呼入路由,现在来配置两个DID
zap channel dids
description:fxo1-incoming
DID:101
再增加一个(传真使用)
description:fxo2-incoming
DID:102
7、pbx---tools---asterisk file editor
搜索一下dahdi-channels.conf
然后将line1和line2的context=from-pstn都改成
context=from-zaptel
8、inbound routes
description:fxo-1-com
did=101
set destination
extension:你要接听的分机号
9、呼叫转移
pbx configuration-follow me
initial ring time:等待时间
destination if no answer:
extension:选择你要呼转的分机号
配置传真
1、添加trunk,
trunk-name=fxo-2
outbound callerid=fxo-2
dahdi idenfilter=2
2、outbound routes
拨号规则
发传真的规则,先按0086,再按地区号和电话号码
Trunk Sequence for Matched Routes
选择fxo-2,作为此路由对应板卡的接口
其它参照fxo-1
3、增加传真分机号
extension-->device--->IAX2
display name:fax
sip alias:114
secret:abc114
4、inbound routes
description:fxo-2-com
did=102
set destination
extension:114(你的传真的分机号)
5、elastix---fax----new virtual fax---
传真名称:fax 分机号码:114
密钥:abc114
county code:86 area code:755(地区号码)
邮件地址:[email protected]
6、fax clients
添加一个你允许使用传真的网段或者ip
7、virtual fax---send fax
发一封传真给你的朋友测试一下吧
asterisk -vrrrrr