You don't need to define a gateway if you are trying to limit incoming calls by a particular IP. You can do it two ways, first by using an ACL to only allow that traffic. Or you can create a dialplan that looks for that particular IP and then sends it to a particular context based on that IP. There are great examples on the wiki. <br>
<br><br><br><br><br><br><div class="gmail_quote">On Mon, Jan 19, 2009 at 5:03 PM, Adam Long <span dir="ltr"><<a href="mailto:ajlong@worldlink.net">ajlong@worldlink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p>I am trying to setup a couple of gateways on my external
profile that do not user usernames or passwords .</p>
<p>How can I setup these gateways to match based on originating
IP address?</p>
<p>At the moment I have them defined in separate xml files in the
sip_profiles/external directory.</p>
<p> </p>
<p>I am using the default external.xml </p>
<p>I would like to be able to dial via this gateway and receive
calls from these gateways.</p>
<p> </p>
<p>For example NYGW1.xml ------- ></p>
<p> </p>
<p><include></p>
<p> <gateway name="NYGW1" cidr="<a href="http://10.10.10.1/32" target="_blank">10.10.10.1/32</a>"
description="Cisco Gateway Connected to Level3 PRI"></p>
<p> <param name="register"
value="false"/></p>
<p> <param name="username"
value="none"/></p>
<p> <param name="password"
value="none"/></p>
<p> <param name="realm"
value="10.10.10.1"/></p>
<p> <param name="proxy"
value="10.10.10.1"/></p>
<p> <param name="from-domain"
value="<a href="http://oneofmydomains.com" target="_blank">oneofmydomains.com</a>"/></p>
<p> <param name="extension"
value="inbound_oneofmydomains"/></p>
<p> <param
name="caller-id-in-from" value="true"/></p>
<p> <param name="ping"
value="25"/></p>
<p> </gateway></p>
<p></include></p>
<p> </p>
<p>When I remove the username/password params or set them to ""
FreeSWITCH refuses to load the gateway.</p>
<p>I tried adding the cidr="" to the gateway but no
luck.</p>
<p> </p>
<p>Really all I want is for calls flowing in from 10.10.10.1
--- > FreeSWITCH External SIP Profile ---- > Match to NYGW1
--- > Dump into a context or extension from where I can route them as I
please.</p>
<p> </p>
<p>Kind of how an Asterisk sip "peer" is matched on
IP and routed to a context.</p>
<p> </p>
<p>Any ideas greatly appreciated!</p>
</div>
</div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br><br>