title: Asterisk inbound/outbound SIP trunk with Twilio
body: <p>I'm trying to use Twilio as my SIP trunk for an Asterisk install. I can get Google Voice to work, but can't get Twilio to work. Here are the SIP trunk settings. What am I missing?</p>
  
  <pre><code>Outgoing Settings --
  
  Trunk name: Twilio-Out&lt;br
  PEER Details:&lt;br
  username=\*\*\*username\*\*\*&lt;br
  type=peer&lt;br
  secret=\*\*\*password\*\*\*&lt;br
  context=from-trunk&lt;br
  host=\*\*\*name\*\*\*.sip.twilio.com
  
  Incoming Settings --
  
  USER Context: Twilio-In&lt;br
  USER Details:&lt;br
  type=user&lt;br
  context=from-trunk&lt;br
  secret=\*\*\*password\*\*\*&lt;br
  
  Registration --
  
  Register String: [empty]
  </code></pre>