<div dir="ltr">I have a SIP Provider which has 4 IP addresses in US. They send SIP calls from any of those 4 IPs to my Freeswitch. **They do not require authentication, nor SIP Trunk registration, just purely send a SIP INVITE**<div><div><br></div><div>Incoming calls <b>work fine</b> except that I want to assign a <b>context</b> when I receive an incoming call from this ITSP at <b>gateway level</b>.</div><div>Gateway xml file is configured under external folder. (../conf/sip_profiles/external/)</div>







<div><br></div><div>I can see in packet capture and in freeswitch.log call comes from correct ip and port, but is always routed to context default. Hence I need to configure something there. Is it possible to define context at gateway level?</div><div><br></div><div>Console trace:</div><div><a href="http://pastebin.com/NzzLAK8U">http://pastebin.com/NzzLAK8U</a><br></div><div>Freeswitch trace</div><div><a href="http://pastebin.com/YUYVLfyY">http://pastebin.com/YUYVLfyY</a><br></div><div><br></div><div>I defined my 4 SIP Gateways (status up) as follows: (1 for each IP address)</div><div>







<p><span><font color="#0000ff">&lt;gateway name=&quot;itsp-inbound-us1&quot;&gt;</font></span></p><p><font color="#0000ff">  &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;</font></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;proxy&quot; value=&quot;54.172.60.0&quot;/&gt;</font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;context&quot; value=&quot;itsp&quot;/&gt;</font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;username&quot; value=&quot;not-required&quot;/&gt; </font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;password&quot; value=&quot;not-required&quot;/&gt; </font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;from-user&quot; value=&quot;not-required&quot;/&gt; </font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt; </font></span></p>
<p><span><font color="#0000ff">  &lt;param name=&quot;extension&quot; value=&quot;1000&quot;/&gt; </font></span></p>
<p><span><font color="#0000ff">&lt;/gateway&gt;</font></span></p></div><div>







<p><span><br></span></p><p><span>&gt;sofia profile external gwlist </span></p><p><font color="#0000ff">itsp-inbound-us4 itsp-inbound-us3 itsp-inbound-us2 itsp-inbound-us1</font></p><p><span><font color="#0000ff">







</font></span></p><p><span>&gt; sofia status gateway itsp-inbound-us1</span></p><p><span><font color="#0000ff">Name    <span>        </span>itsp-inbound-us1</font></span></p><p><span><font color="#0000ff">Profile <span>        </span>external</font></span></p><p><span><font color="#0000ff">Scheme  <span>        </span>Digest</font></span></p><p><span><font color="#0000ff">Realm   <span>        </span>54.172.60.0</font></span></p><p><span><font color="#0000ff">Username<span>        </span>not-required</font></span></p><p><span><font color="#0000ff">Password<span>        </span>yes</font></span></p><p><span><font color="#0000ff">From    <span>        </span>&lt;<a href="mailto:sip%3Anot-required@54.172.60.0" target="_blank">sip:not-required@54.172.60.0</a>&gt;</font></span></p><p><span><font color="#0000ff">Contact <span>        </span>&lt;sip:gw+itsp-inbound-us1@52.2.15.172:5060;transport=udp;gw=twilio-inbound-us1&gt;</font></span></p><p><span><font color="#0000ff">Exten   <span>        </span>1000</font></span></p><p><span><font color="#0000ff">To      <span>        </span><a href="mailto:sip%3Anot-required@54.172.60.0" target="_blank">sip:not-required@54.172.60.0</a></font></span></p><p><span><font color="#0000ff">Proxy   <span>        </span>sip:54.172.60.0</font></span></p><p><span><font color="#0000ff">Context <span>        </span>itsp</font></span></p><p><span><font color="#0000ff">Expires <span>        </span>600</font></span></p><p><span><font color="#0000ff">Freq    <span>        </span>600</font></span></p><p><span><font color="#0000ff">Ping    <span>        </span>0</font></span></p><p><span><font color="#0000ff">PingFreq<span>        </span>0</font></span></p><p><span><font color="#0000ff">PingTime<span>        </span>0.00</font></span></p><p><span><font color="#0000ff">PingState<span>        </span>0/0/0</font></span></p><p><span><font color="#0000ff">State   <span>        </span>NOREG</font></span></p><p><span><font color="#0000ff">Status  <span>        </span>UP</font></span></p><p><span><font color="#0000ff">Uptime  <span>        </span>536s</font></span></p><p><span><font color="#0000ff">CallsIN <span>        </span>0</font></span></p><p><span><font color="#0000ff">CallsOUT<span>        </span>0</font></span></p><p><span><font color="#0000ff">FailedCallsIN<span>        </span>0</font></span></p><p><span><font color="#0000ff">FailedCallsOUT<span>        </span>0</font></span></p><p><span>
































</span></p><p><span>=================================================================================================</span></p></div><div>Any suggestion?</div></div><div><br></div><div><br></div></div>