Hello All,
I have a strange issue. My Asterisk server is REFUSING to answer an INVITE from a Twilio Elastic SIP Trunk. I’ve tried to boil my configuration down to something simple that should work, but it doesn’t. I know the OS is receiving the INVITE because I’ve attached a tshark dump showing that it’s hitting the server, but there’s nothing on the console to indicate what might be going wrong even with core set debug 5 and pjsip set logger on. The INVITE is simply being ignored by Asterisk.
Here’s as simple of a pjsip.conf as I can make:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[twilio_identify]
type=identify
endpoint=twilio_endpoint
match=54.244.51.0/24 ; Match Twilio's IP range
[twilio_endpoint]
type=endpoint
context=from-twilio
disallow=all
allow=ulaw,alaw,gsm
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
And my extensions.conf:
[from-twilio]
exten => _+1NXXXXXXXXX,1,NoOp(Incoming call from Twilio to ${EXTEN})
exten => _+1NXXXXXXXXX,n,Answer()
exten => _+1NXXXXXXXXX,n,Playback(welcome-message) ; Play a welcome message to test
exten => _+1NXXXXXXXXX,n,Hangup()
Any help is appreciated.