<meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">   &lt;list name=&quot;strict&quot; <b>default=&quot;allow&quot;</b>&gt;<br>      &lt;node type=&quot;allow&quot; cidr=&quot;195.225.XXX.XXX/32&quot;/&gt;<br>

    &lt;/list&gt;</span><br><br><div class="gmail_quote">You want a default of &#39;deny&#39;. The default is what to do with any IP not on the list, what you&#39;ve set allows every IP.</div><div class="gmail_quote"><br>

</div><div class="gmail_quote">I would suggest you build your config off the default config by the way, customising them to suit you and removing what you don&#39;t need. The directory structure is there to help you manage things (what you&#39;ve posted makes it look like you might be using a flat file?). There&#39;s a lot of parameters you&#39;ve missed out setting.</div>

<div class="gmail_quote"><br></div><div class="gmail_quote">For example:</div><div class="gmail_quote"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM&quot;/&gt;</span></div>

<meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=PCMU,PCMA,GSM&quot;/&gt;</span><div class="gmail_quote">

<br></div><div class="gmail_quote">These will have absolutely no effect. They set a global variable that you can use elsewhere in your configuration, but you&#39;re not actually using them. You should be setting the inbound &amp; outbound codec preferences on the sofia profile in a param, either using the global variable e.g. $${outbound_codec_prefs} or by setting them explicitly there.</div>

<div class="gmail_quote"><br></div><div class="gmail_quote">-Steve</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On 8 June 2011 01:16, Cyril Zlachevsky <span dir="ltr">&lt;<a href="mailto:cyril.zlachevsky@gmail.com">cyril.zlachevsky@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
Can&#39;t stand what should I do for ACL working.<br>
<br>
I&#39;m forwarding a call from a particular static IP to number@voipprovider.<br>
I refused of using FS default configs because they are complicated and redundant for me.<br>
<br>
This is my configuration:<br>
&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;local_address=$${local_ip_v4}&quot;/&gt;<br>
<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;sipnet_proxy=<a href="http://voiprovider.com" target="_blank">voiprovider.com</a>&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;sipnet_login=echo&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;sipnet_password=echo&quot;/&gt;<br>
<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;sound_prefix=$${sounds_dir}/en/us/callie&quot;/&gt;<br>
<br>
&lt;section name=&quot;configuration&quot;&gt;<br>
<br>
&lt;configuration name=&quot;switch.conf&quot;&gt;<br>
   &lt;settings&gt;<br>
     &lt;param name=&quot;colorize-console&quot; value=&quot;true&quot;/&gt;<br>
     &lt;param name=&quot;max-sessions&quot; value=&quot;1000&quot;/&gt;<br>
     &lt;param name=&quot;sessions-per-second&quot; value=&quot;30&quot;/&gt;<br>
     &lt;param name=&quot;loglevel&quot; value=&quot;debug&quot;/&gt;<br>
   &lt;/settings&gt;<br>
&lt;/configuration&gt;<br>
<br>
&lt;configuration name=&quot;modules.conf&quot;&gt;<br>
   &lt;modules&gt;<br>
     &lt;load module=&quot;mod_console&quot;/&gt;<br>
     &lt;load module=&quot;mod_logfile&quot;/&gt;<br>
     &lt;load module=&quot;mod_sofia&quot;/&gt;<br>
     &lt;load module=&quot;mod_dialplan_xml&quot;/&gt;<br>
     &lt;load module=&quot;mod_dptools&quot;/&gt;<br>
     &lt;load module=&quot;mod_commands&quot;/&gt;<br>
     &lt;load module=&quot;mod_expr&quot;/&gt;<br>
     &lt;load module=&quot;mod_sndfile&quot;/&gt;<br>
   &lt;/modules&gt;<br>
&lt;/configuration&gt;<br>
<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=PCMU,PCMA,GSM&quot;/&gt;<br>
<br>
&lt;configuration name=&quot;console.conf&quot;&gt;<br>
   &lt;mappings&gt;<br>
     &lt;map name=&quot;all&quot; value=&quot;console,debug,info,notice,warning,err,crit,alert&quot;/&gt;<br>
   &lt;/mappings&gt;<br>
   &lt;settings&gt;<br>
     &lt;param name=&quot;colorize&quot; value=&quot;true&quot;/&gt;<br>
     &lt;param name=&quot;loglevel&quot; value=&quot;info&quot;/&gt;<br>
   &lt;/settings&gt;<br>
&lt;/configuration&gt;<br>
<br>
&lt;configuration name=&quot;logfile.conf&quot;&gt;<br>
   &lt;settings&gt;<br>
     &lt;param name=&quot;rotate-on-hup&quot; value=&quot;true&quot;/&gt;<br>
   &lt;/settings&gt;<br>
   &lt;profiles&gt;<br>
     &lt;profile name=&quot;default&quot;&gt;<br>
       &lt;settings&gt;<br>
         &lt;param name=&quot;logfile&quot; value=&quot;/var/log/freeswitch/freeswitch.log&quot;/&gt;<br>
         &lt;param name=&quot;rollover&quot; value=&quot;10485760&quot;/&gt;<br>
       &lt;/settings&gt;<br>
       &lt;mappings&gt;<br>
         &lt;map name=&quot;all&quot; value=&quot;debug,info,notice,warning,err,crit,alert&quot;/&gt;<br>
       &lt;/mappings&gt;<br>
     &lt;/profile&gt;<br>
   &lt;/profiles&gt;<br>
&lt;/configuration&gt;<br>
<br>
&lt;configuration name=&quot;acl.conf&quot; description=&quot;Network Lists&quot;&gt;<br>
   &lt;network-lists&gt;<br>
     &lt;list name=&quot;strict&quot; default=&quot;allow&quot;&gt;<br>
       &lt;node type=&quot;allow&quot; cidr=&quot;195.225.XXX.XXX/32&quot;/&gt;<br>
     &lt;/list&gt;<br>
     &lt;list name=&quot;domains&quot; default=&quot;deny&quot;&gt;<br>
       &lt;node type=&quot;allow&quot; domain=&quot;$${domain}&quot;/&gt;<br>
     &lt;/list&gt;<br>
   &lt;/network-lists&gt;<br>
&lt;/configuration&gt;<br>
<br>
&lt;configuration name=&quot;sofia.conf&quot;&gt;<br>
   &lt;global_settings&gt;<br>
     &lt;param name=&quot;log-level&quot; value=&quot;0&quot;/&gt;<br>
     &lt;param name=&quot;debug-presence&quot; value=&quot;0&quot;/&gt;<br>
   &lt;/global_settings&gt;<br>
   &lt;profiles&gt;<br>
     &lt;profile name=&quot;local&quot;&gt;<br>
       &lt;domains&gt;<br>
         &lt;domain name=&quot;all&quot; alias=&quot;true&quot; parse=&quot;false&quot;/&gt;<br>
       &lt;/domains&gt;<br>
       &lt;settings&gt;<br>
         &lt;param name=&quot;context&quot; value=&quot;local&quot;/&gt;<br>
         &lt;param name=&quot;sip-port&quot; value=&quot;5060&quot;/&gt;<br>
         &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
         &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_address}&quot;/&gt;<br>
         &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_address}&quot;/&gt;<br>
       &lt;/settings&gt;<br>
     &lt;/profile&gt;<br>
     &lt;profile name=&quot;sipnet&quot;&gt;<br>
       &lt;domains&gt;<br>
         &lt;domain name=&quot;all&quot; alias=&quot;false&quot; parse=&quot;false&quot;/&gt;<br>
       &lt;/domains&gt;<br>
       &lt;settings&gt;<br>
         &lt;param name=&quot;context&quot; value=&quot;sipnet&quot;/&gt;<br>
         &lt;param name=&quot;sip-port&quot; value=&quot;5080&quot;/&gt;<br>
         &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
         &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_address}&quot;/&gt;<br>
         &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_address}&quot;/&gt;<br>
         &lt;!--param name=&quot;auth-calls&quot; value=&quot;false&quot;/--&gt;<br>
         &lt;param name=&quot;auth-calls&quot; value=&quot;true&quot;/&gt;<br>
         &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;strict&quot;/&gt;<br>
       &lt;/settings&gt;<br>
       &lt;gateways&gt;<br>
         &lt;gateway name=&quot;sipnet&quot;&gt;<br>
           &lt;param name=&quot;proxy&quot; value=&quot;$${sipnet_proxy}&quot;/&gt;<br>
           &lt;param name=&quot;realm&quot; value=&quot;asterisk&quot;/&gt;<br>
           &lt;param name=&quot;username&quot; value=&quot;$${sipnet_login}&quot;/&gt;<br>
           &lt;param name=&quot;password&quot; value=&quot;$${sipnet_password}&quot;/&gt;<br>
           &lt;param name=&quot;local-network-acl&quot; value=&quot;strict&quot;/&gt;<br>
         &lt;/gateway&gt;<br>
       &lt;/gateways&gt;<br>
     &lt;/profile&gt;<br>
   &lt;/profiles&gt;<br>
  &lt;/configuration&gt;<br>
&lt;/section&gt;<br>
<br>
&lt;section name=&quot;dialplan&quot;&gt;<br>
   &lt;context name=&quot;local&quot;&gt;<br>
     &lt;extension name=&quot;local-accounts&quot;&gt;<br>
       &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[1-3])$&quot;&gt;<br>
         &lt;action application=&quot;bridge&quot; data=&quot;user/$1@$${local_address}&quot;/&gt;<br>
       &lt;/condition&gt;<br>
     &lt;/extension&gt;<br>
     &lt;extension name=&quot;sipnet&quot;&gt;<br>
       &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d+)$&quot;&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=$${sipnet_login}&quot;/&gt;<br>
         &lt;action application=&quot;bridge&quot;<br>
data=&quot;{sip_invite_domain=$${sipnet_proxy}}sofia/sipnet/$1@$${sipnet_proxy}&quot;/&gt;<br>
       &lt;/condition&gt;<br>
     &lt;/extension&gt;<br>
   &lt;/context&gt;<br>
&lt;/section&gt;<br>
<br>
&lt;section name=&quot;directory&quot;&gt;<br>
   &lt;domain name=&quot;$${local_address}&quot;&gt;<br>
     &lt;params&gt;<br>
       &lt;param name=&quot;dial-string&quot;<br>
value=&quot;{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>
     &lt;/params&gt;<br>
     &lt;groups&gt;<br>
       &lt;group name=&quot;local&quot;&gt;<br>
         &lt;users&gt;<br>
           &lt;user id=&quot;inboundtest&quot;&gt;&lt;/user&gt;<br>
           &lt;params&gt;<br>
             &lt;param name=&quot;debug&quot; value=&quot;yes&quot;/&gt;<br>
             &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
             &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;strict&quot;/&gt;<br>
             &lt;param name=&quot;apply-register-acl&quot; value=&quot;strict&quot;/&gt;<br>
           &lt;/params&gt;<br>
          &lt;/users&gt;<br>
       &lt;/group&gt;<br>
     &lt;/groups&gt;<br>
   &lt;/domain&gt;<br>
&lt;/section&gt;<br>
&lt;/document&gt;<br>
<br>
When I start FS, I can&#39;t see my IP 195.225.XXX.XXX in freeswitch.log - only this:<br>
[NOTICE] switch_core.c:1088 Created ip list rfc1918.auto default (deny)<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> (allow) [] to list rfc1918.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> (allow) [] to list rfc1918.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> (allow) [] to list rfc1918.auto<br>
[NOTICE] switch_core.c:1096 Created ip list wan.auto default (allow)<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> (deny) [] to list wan.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> (deny) [] to list wan.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> (deny) [] to list wan.auto<br>
[NOTICE] switch_core.c:1104 Created ip list nat.auto default (deny)<br>
[NOTICE] switch_core.c:1106 Adding 88.198.XXX.XXX/<a href="http://255.255.255.255" target="_blank">255.255.255.255</a> (deny) to list nat.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> (allow) [] to list nat.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> (allow) [] to list nat.auto<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> (allow) [] to list nat.auto<br>
[NOTICE] switch_core.c:1115 Created ip list loopback.auto default (deny)<br>
[NOTICE] switch_utils.c:248 Adding <a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a> (allow) [] to list loopback.auto<br>
[NOTICE] switch_core.c:1121 Created ip list localnet.auto default (deny)<br>
[NOTICE] switch_core.c:1124 Adding 88.198.XXX.XXX/<a href="http://255.255.255.255" target="_blank">255.255.255.255</a> (allow) to list localnet.auto<br>
<br>
With my current configuration FS allow to register from any IP.<br>
Where is my error?<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>