提交 731b0a7f authored 作者: Brian West's avatar Brian West

this is an example to go with the last commit from tony. You can now have a…

this is an example to go with the last commit from tony.  You can now have a cidr= attr on a user in the directory which is then used to build an acl list for that domain.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9057 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4722de50
......@@ -20,8 +20,8 @@
<node type="allow" cidr="208.102.123.124/32"/>
</list>
<list name="sip_acl" default="deny">
<node type="allow" cidr="192.168.0.234/32"/>
<list name="domains" default="deny">
<node type="allow" domain="$${domain}"/>
</list>
</network-lists>
......
<include>
<!-- ipauth if you have an ip= in the user attributes ie ip="1.2.3.4" -->
<!-- <user id="brian" ip="1.2.3.4"> -->
<user id="brian" mailbox="9999">
<user id="brian" mailbox="9999" cidr="1.2.3.4/24">
<!-- Outbound Registrations Related to this user -->
<gateways>
<!--<gateway name="asterlink.com">-->
......
......@@ -39,8 +39,8 @@
<param name="aggressive-nat-detection" value="true"/>
<!--<param name="enable-timer" value="false"/>-->
<!--<param name="enable-100rel" value="false"/>-->
<param name="apply-inbound-acl" value="sip_acl"/>
<!--<param name="apply-register-acl" value="rfc1918"/>-->
<param name="apply-inbound-acl" value="domains"/>
<param name="apply-register-acl" value="domains"/>
<!--<param name="dtmf-type" value="info"/>-->
<param name="record-template" value="$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
<!--enable to use presense and mwi -->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论