<extension name="global" continue="true">
<condition field="${network_addr}" expression="^$" break="never">
- <action application="set" data="use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}"/>
- <anti-action application="set" data="use_profile=${cond(${is_lan_addr(${network_addr})} == 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(${acl(${network_addr} rfc1918)} == true ? nat : default)}"/>
</condition>
<!-- This will setup some variables if the user isn't authenticated.
numbering_plan is required for the demo to function properly.
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;
}