Author: brian Date: Wed Jul 16 13:47:57 2008 New Revision: 9057 Modified: freeswitch/trunk/conf/autoload_configs/acl.conf.xml freeswitch/trunk/conf/directory/default/brian.xml freeswitch/trunk/conf/sip_profiles/internal.xml Log: 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. Modified: freeswitch/trunk/conf/autoload_configs/acl.conf.xml ============================================================================== --- freeswitch/trunk/conf/autoload_configs/acl.conf.xml (original) +++ freeswitch/trunk/conf/autoload_configs/acl.conf.xml Wed Jul 16 13:47:57 2008 @@ -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> Modified: freeswitch/trunk/conf/directory/default/brian.xml ============================================================================== --- freeswitch/trunk/conf/directory/default/brian.xml (original) +++ freeswitch/trunk/conf/directory/default/brian.xml Wed Jul 16 13:47:57 2008 @@ -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">--> Modified: freeswitch/trunk/conf/sip_profiles/internal.xml ============================================================================== --- freeswitch/trunk/conf/sip_profiles/internal.xml (original) +++ freeswitch/trunk/conf/sip_profiles/internal.xml Wed Jul 16 13:47:57 2008 @@ -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 -->