使用elastix搭建IP电话及传真

晴 ,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(地区号码)

  邮件地址:xxxx@xxx.com

6、fax clients

    添加一个你允许使用传真的网段或者ip

7、virtual fax---send  fax

    发一封传真给你的朋友测试一下吧 

 

 asterisk -vrrrrr

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值