SIP Upper Registration

来自最权威最新完整开源SIP,语音通信,融合通信中文技术文档资料,提供详细的Asterisk Freepbx, FreeSBC, 免费会话边界控制器,网关,语音板卡,IPPBX,SBC配置资料-asterisk,freepbx,freesbc 用户手册 界面配置,呼叫路由,IVR, 网关对接,拨号规则,SIP 分机呼叫,pjsip, IVR, 录音, CDR, 队列呼叫,振铃组,CLI 命令中文资料手册
跳转至: 导航搜索

SIP Upper Registration

介绍

"Upper Registration"(也称之为透传注册或者转发注册),是Sangoma SBC的功能之一,支持外网用户注册到内网的企业托管PBX系统,并且保证注册的安全性。

Sangoma SBC 部署在内网的边界位置,来支持外网用户可以透明注册到内网的PBX。因此,用户可以通过当前PBX分机的形式通过SBC注册到PBX。 这里无需再部署任何安全机制。

注册用户通过 upper registration的功能实现呼入和呼出功能,类似于内网用户分机。


配置步骤

用户需要执行以下几个步骤:

  • 创建一个SIP Profile支持PBX -SIP Profile是用来支持企业PBX。注意,在SBC部署中,如果有多个PBX,每个PBX至少需要一个自己的SIP Profile。
  • 创建一个Domain - 此 Domain 使用PBX同样的domain。domain 配置文件包含本地注册信息。当SBC收到注册请求时,匹配了domain 名称,系统会转发到相应的PBX。
  • 创建一个 Domain binding - 绑定Domain 到相应的SIP Profile,这里来处理外部进入的数据。
  • 创建一个呼叫路由-指定呼叫路由给相应的注册用户,保证用户呼叫到正确的呼叫路由。

passthrough.png

这里,我们使用一个典型的配置案例来帮助用户了解具体的配置步骤。

网络地址如下:

  • 企业PBX IP 地址 192.168.100.108
  • SBC 内网地址 192.168.100.66
  • SBC 外网地址 10.10.2.10

我们需要添加:

  • 2 Dialplans "Inbound_Dialplan" and "Outbound_Dialplan"
  • 2 SIP Profiles "Internal_Sip_Profile" and "External_Sip_Profile"
  • 1 Domain Upper registration domain "10.10.2.10"


Dialplan "Inbound_Dialplan"

<extension name="Local_Extension_Inbound">

 <condition field="destination_number" expression="^(10[01][0-9]).*$">
   <action application="export" data="dialed_extension=$1"/>
   <action application="bridge" data="sip/Internal_Sip_Profile/${dialed_extension}@192.168.100.108"/>
 </condition>

</extension>

Dialplan "Outbound_Dialplan"

<extension name="Local_Extension_Outbound">

 <condition field="destination_number" expression="^(10[01][0-9])@192.168.100.66.*$">
   <action application="export" data="dialed_extension=$1"/>
   <action application="bridge" data="${sofia_contact(External_Sip_Profile/${dialed_extension}@10.10.2.10)}"/>
 </condition>

</extension>

SIP Profile "Internal_Sip_Profile"

访问 "Configuration -> Signalling -> SIP Profiles", 添加一个sip profile "Internal_Sip_Profile"; 用户可以看到默认的配置,做以下修改:

 "SIP IP Address": 选择SIP 监听端口:在这个实例中,我们使用的地址是"192.168.100.66";
 设置 "Authenticate Calls" to "Disabled"
 设置 "Always Use Full Identification" to "Enabled"
 设置 "Routing Plan" to "Outbound_Dialplan"

201.png

202.png


SIP Profile "External_Sip_Profile"

sip profile "External_Sip_Profile", 和 "Internal_Sip_Profile" 相似 访问 "Configuration -> Signalling -> SIP Profiles", 添加新的 sip profile "External_Sip_Profile"; 用户可以看到默认的设置,然后做以下修改:

"SIP IP Address": 选择SIP监听的端口,这里是 "10.10.2.10";
 设置 "Authenticate Calls" to "Disabled"
 设置 "Always Use Full Identification" to "Enabled"
 设置 "Routing Plan" to "Inbound_Dialplan"

Upper Registration Domain "10.10.2.10"
访问 "Configuration -> Signalling -> Domains";
添加一个新的domain "10.10.2.10";
开启 "Forward Registration" 
请阅读截图提示,表示的意思是: 任何注册到domain "10.10.2.10", Sangoma SBC 将使用 sip profile "Internal_Sip_Profile" 转发到 "192.168.100.108", port "5060" with  transport UDP.

203.png


Bind Domain "10.10.2.10" to external sip profile
访问"Configuration -> Signalling -> SIP Profiles", 修改 sip profile "External_Sip_Profile";
点击 "Bind" , 然后选择domain “10.10.2.10”旁边的勾选框;
点击"Bind"按钮。

204.png


案例1: 边界设备和单个注册- 配置实例1 这个实例介绍了SBC 转发注册和边界设备终端的实现

Slide1.jpg 创建步骤:

  • Create a SIP Profiles
  • Create Domains
  • Create Domain bindings
  • Create Call Routing


案例 2: 防火墙后的 NAT 和多帐号注册- 配置实例2 此实例中,我们演示如何在防火墙 NAT后部署注册用户 Slide2.jpg