thanks trixter

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6469 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2007-12-02 02:55:51 +00:00
parent 92b76e5924
commit 2fa929524f
1 changed files with 3 additions and 2 deletions

View File

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