<HTML><BODY><p>Hi, everybody.</p><p>FreeSWITCH Version 1.2.6+git~20130104T154559Z~a4247651ca (git a424765 2013-01-04 15:45:59Z).</p><p>I have 2 interfaces in FreeSWITCH server:<br>-eth0 with public IP, where all gateways are located.<br>-eth1 with private IP, where all VoIP equipment (FXS, FXO GWs) are placed.</p><p>The source [http://wiki.freeswitch.org/wiki/Clarification:gateways] tells about 3 different ways of configuring gateway.<br>I use the 3rd one: freeswitch\conf\directory\default\<Gateway_name>.xml.<br>For examle look at the attachment.<br>I use it as all things corresponding with a gateway are at the same place:<br>- ACL (<user id="ThruToInfoIndust_192.168.15.60" cidr="192.168.15.60/32">)<br>- gateway (<param name="..." value="..."/>)<br>- user variables<br>(<br> <variable name="toll_allow" value="domestic,local"/><br> <variable name="IsFromInfoIndust" value="true" direction="inbound"/><br>)<br>P.S. This variant required only in <br><param name="apply-inbound-acl" value="domains-<profile>:public"/><br> in all profiles, where<br><list name="domains-<profile>" default="deny"><br> <node type="allow" domain="$${domain}"/><br></list><br>P.P.S. Variable "IsFromInfoIndust" used as because of "apply-inbound-acl""domains-<profile>:PUBLIC"<br> . Where is a transfer to default context in case of this variable in public context.</p><p><br>But now several gateways are moved inside private network (with the help of VPN).<br>So I need to configure these gateways to corespond with internal profile (now all packets to these gateways, for example, OPTIONS, go thru internal interface but with external IP as source IP).<br>How can I do it for best?</p><p><br>With best regards,<br>Shumaev Dmitriy KBR Ltd.</p></BODY></HTML>