<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"><gateway name="itsp-inbound-us1"></font></span></p><p><font color="#0000ff"> <param name="auth-calls" value="false"/></font></p>
<p><span><font color="#0000ff"> <param name="proxy" value="54.172.60.0"/></font></span></p>
<p><span><font color="#0000ff"> <param name="register" value="false"/></font></span></p>
<p><span><font color="#0000ff"> <param name="context" value="itsp"/></font></span></p>
<p><span><font color="#0000ff"> <param name="username" value="not-required"/> </font></span></p>
<p><span><font color="#0000ff"> <param name="password" value="not-required"/> </font></span></p>
<p><span><font color="#0000ff"> <param name="from-user" value="not-required"/> </font></span></p>
<p><span><font color="#0000ff"> <param name="expire-seconds" value="600"/> </font></span></p>
<p><span><font color="#0000ff"> <param name="extension" value="1000"/> </font></span></p>
<p><span><font color="#0000ff"></gateway></font></span></p></div><div>
<p><span><br></span></p><p><span>>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>> 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><<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">Contact <span>        </span><sip:gw+itsp-inbound-us1@52.2.15.172:5060;transport=udp;gw=twilio-inbound-us1></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>