Asterisk对接潮流的FXO网关GXW410x实现异地落地方法

来源:互联网 发布:助创cms众筹破解版 编辑:程序博客网 时间:2024/05/16 01:44
方法一
Peer trunk
将GXW410x与Asterisk进行Peer trunk对接(不需要任何账号,适用于1次拨号)
方法二
Sip trunk
将GXW410x与Asterisk进行SIP 账号对接,此种方式允许GXW410x置于NAT/防火墙后面(是适用于2次拨号)


http://bbs.voip88.com/forum.php?mod=viewthread&tid=46406&reltid=15354&pre_thread_id=0&pre_pos=4&ext=CB
配置之前请重启一下Asterisk服务器
方法一:Peer trunk模式
在Asterisk的sip.conf 中添加GXW410x配置
[gxw410x]
type=peer
context=incoming
host=gxw410x_ip_address
insecure=port
  GXW410x上配置:登陆GXW410x,在模板1的sip server中输入Asterisk的IP地址或域名。
            设置“sip注册状态”为“否”

方法二:SIP Trunk模式
a)在Asterisk的sip.conf中添加SIP账号。可以添加4~8个
[101]
type=friend
secret=password
host=dynamic
context=internal
insecure=port
b)登陆GXW410x,在模板1中输入SIP服务器IP地址或域名。
c)在GXW410x的用户账号页面填写账号信息。
Channels
SIP User ID
Authentication ID
Authentication Password
Profile ID
1
101
101
***
Profile1
2
102
102
***
Profile1
3
103
103
***
Profile1
4
104
104
***
Profile1
5
105
105
***
Profile1
6
106
106
***
Profile1
7
107
107
***
Profile1
8
108
108
***
Profile1
二次拨号
1.如果使用二次拨号的方式,首先需要在GXW410x上注册账号,如上面已经注册101-108。
2.在 extensions.conf 文件中新增一个分机号码为101,这个号码同样作为voip的来电号码。
exten => 101,1,Dial(SIP/101)
3.在GXW410x上需要在FXO Lines中进行设置
a. Wait for Dial-Tone(Y/N) to Y.
b. Stage Method(1/2) to 2.
C. 在Channel Dialing to VoIP配置如下:
4.拨打方式,内部分机,首先呼叫注册的101,呼叫将自动转移到GXW410x,此时GXW410x的O口自动摘机,听到二次拨号音后在拨打外线号码。
5.注意配置CPT参数。

0 0
原创粉丝点击