]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
this is an example to go with the last commit from tony. You can now have a cidr...
authorBrian West <brian@freeswitch.org>
Wed, 16 Jul 2008 17:47:57 +0000 (17:47 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 16 Jul 2008 17:47:57 +0000 (17:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9057 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/acl.conf.xml
conf/directory/default/brian.xml
conf/sip_profiles/internal.xml

index b6626c875e1d050122e0e762bc1790deaf310954..e310d214d25642b1352ec2bbf17e0f1ba3f5162a 100644 (file)
@@ -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>
index 18c25ac885de3887a4d36b14f72389f4a935148b..f5e871e7601798d988b026275e89e41b350211ec 100644 (file)
@@ -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">-->
index 944c4ee478b1411ebd4b6ca58360de0f9186f18f..f0c9f58d7a86eef06038a356e5b2901463b67a81 100644 (file)
@@ -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 -->