you can create a new SIP profile, bind it to a different UDP port, and direct all calls to a special context. On Wed, Oct 7, 2015 at 5:15 PM, Gonzalo Gasca Meza <gascagonzalo@gmail.com> wrote:
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**
Incoming calls work fine except that I want to assign a context when I receive an incoming call from this ITSP at gateway level. Gateway xml file is configured under external folder. (../conf/sip_profiles/external/)
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?
Console trace: http://pastebin.com/NzzLAK8U Freeswitch trace http://pastebin.com/YUYVLfyY
I defined my 4 SIP Gateways (status up) as follows: (1 for each IP address)
<gateway name="itsp-inbound-us1">
<param name="auth-calls" value="false"/>
<param name="proxy" value="54.172.60.0"/>
<param name="register" value="false"/>
<param name="context" value="itsp"/>
<param name="username" value="not-required"/>
<param name="password" value="not-required"/>
<param name="from-user" value="not-required"/>
<param name="expire-seconds" value="600"/>
<param name="extension" value="1000"/>
</gateway>
sofia profile external gwlist
itsp-inbound-us4 itsp-inbound-us3 itsp-inbound-us2 itsp-inbound-us1
sofia status gateway itsp-inbound-us1
Name itsp-inbound-us1
Profile external
Scheme Digest
Realm 54.172.60.0
Username not-required
Password yes
From <sip:not-required@54.172.60.0>
Contact <sip:gw+itsp-inbound-us1@52.2.15.172:5060;transport=udp;gw=twilio-inbound-us1>
Exten 1000
To sip:not-required@54.172.60.0
Proxy sip:54.172.60.0
Context itsp
Expires 600
Freq 600
Ping 0
PingFreq 0
PingTime 0.00
PingState 0/0/0
State NOREG
Status UP
Uptime 536s
CallsIN 0
CallsOUT 0
FailedCallsIN 0
FailedCallsOUT 0
=================================================================================================
Any suggestion?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org