I have set up my Twilio account to receive outbound calls from my asterisk sip server.
I have made a registration request as per the docs
register => <user>:<password>@<termination_uri>.pstn.us1.twilio.com
These are the log from sip set debug on
Retransmitting #2 (no NAT) to 54.172.60.3:5060:
REGISTER sip:<termination_uri>.pstn.us1.twilio.com SIP/2.0
Via: SIP/2.0/UDP <sip_server_ip>:5060;branch=z9hG4bK4f338547
Max-Forwards: 70
From: <sip:<user>@<termination_uri>.pstn.us1.twilio.com>;tag=as655fbd71
To: <sip:<user>@<termination_uri>.pstn.us1.twilio.com>
Call-ID: 44b6bf8f0421dd862f704bdd37efb675@10.128.0.12
CSeq: 104 REGISTER
Supported: replaces, timer
User-Agent: Asterisk PBX certified/13.21-cert2
Expires: 120
Contact: <sip:s@<sip_server_ip>:5060>
Content-Length: 0
The request fails to go through even after multiple retries, sip show registry
shows:
Host dnsmgr Username Refresh State Reg.Time
<termination_uri>.pstn.us1.twilio.com:5060 N 666 120 Request Sent
1 SIP registrations.