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
This commit is contained in:
parent
4722de507b
commit
731b0a7f08
|
@ -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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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 -->
|
||||
|
|
Loading…
Reference in New Issue