[commit] r6469 - freeswitch/trunk/conf/dialplan
Author: brian Date: Sat Dec 1 21:55:51 2007 New Revision: 6469 Modified: freeswitch/trunk/conf/dialplan/default.xml Log: thanks trixter Modified: freeswitch/trunk/conf/dialplan/default.xml ============================================================================== --- freeswitch/trunk/conf/dialplan/default.xml (original) +++ freeswitch/trunk/conf/dialplan/default.xml Sat Dec 1 21:55:51 2007 @@ -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.
participants (1)
-
Freeswitch SVN