<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I am trying to setup a couple of gateways on my external
profile that do not user usernames or passwords .<o:p></o:p></p>
<p class=MsoNormal>How can I setup these gateways to match based on originating
IP address?<o:p></o:p></p>
<p class=MsoNormal>At the moment I have them defined in separate xml files in the
sip_profiles/external directory.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am using the default external.xml <o:p></o:p></p>
<p class=MsoNormal>I would like to be able to dial via this gateway and receive
calls from these gateways.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>For example NYGW1.xml ------- ><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><include><o:p></o:p></p>
<p class=MsoNormal> <gateway name="NYGW1" cidr="10.10.10.1/32"
description="Cisco Gateway Connected to Level3 PRI"><o:p></o:p></p>
<p class=MsoNormal> <param name="register"
value="false"/><o:p></o:p></p>
<p class=MsoNormal> <param name="username"
value="none"/><o:p></o:p></p>
<p class=MsoNormal> <param name="password"
value="none"/><o:p></o:p></p>
<p class=MsoNormal> <param name="realm"
value="10.10.10.1"/><o:p></o:p></p>
<p class=MsoNormal> <param name="proxy"
value="10.10.10.1"/><o:p></o:p></p>
<p class=MsoNormal> <param name="from-domain"
value="oneofmydomains.com"/><o:p></o:p></p>
<p class=MsoNormal> <param name="extension"
value="inbound_oneofmydomains"/><o:p></o:p></p>
<p class=MsoNormal> <param
name="caller-id-in-from" value="true"/><o:p></o:p></p>
<p class=MsoNormal> <param name="ping"
value="25"/><o:p></o:p></p>
<p class=MsoNormal> </gateway><o:p></o:p></p>
<p class=MsoNormal></include><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>When I remove the username/password params or set them to “”
FreeSWITCH refuses to load the gateway.<o:p></o:p></p>
<p class=MsoNormal>I tried adding the cidr=”” to the gateway but no
luck.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Kind of how an Asterisk sip “peer” is matched on
IP and routed to a context.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any ideas greatly appreciated!<o:p></o:p></p>
</div>
</body>
</html>