tweak configs slightly to use the acl for rfc1918 check
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7971 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5d81e456ff
commit
da72bfb9f6
|
@ -40,8 +40,8 @@
|
||||||
|
|
||||||
<extension name="global" continue="true">
|
<extension name="global" continue="true">
|
||||||
<condition field="${network_addr}" expression="^$" break="never">
|
<condition field="${network_addr}" expression="^$" break="never">
|
||||||
<action application="set" data="use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}"/>
|
<action application="set" data="use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}"/>
|
||||||
<anti-action application="set" data="use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}"/>
|
<anti-action application="set" data="use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}"/>
|
||||||
</condition>
|
</condition>
|
||||||
<!-- This will setup some variables if the user isn't authenticated.
|
<!-- This will setup some variables if the user isn't authenticated.
|
||||||
numbering_plan is required for the demo to function properly.
|
numbering_plan is required for the demo to function properly.
|
||||||
|
|
|
@ -505,7 +505,7 @@ ok:
|
||||||
|
|
||||||
SWITCH_STANDARD_API(lan_addr_function)
|
SWITCH_STANDARD_API(lan_addr_function)
|
||||||
{
|
{
|
||||||
stream->write_function(stream, "%s", switch_is_lan_addr(cmd) ? "yes" : "no");
|
stream->write_function(stream, "%s", switch_is_lan_addr(cmd) ? "true" : "false");
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue