title: Twilio Ougoing Voice Call : Token does not allow outgoing calls on first attempt
body: <p>I have recently started experiencing peculiar behaviour trying to initiate an outgoing phone call Browser -> Phone.</p>
  
  <p>Every time I refresh the browser, my initial call to <code>Twilio.Device.connect(phonecallParams)</code> results in an error: </p>
  
  <p><code>Received an error from the gateway: {code: 31002, connection: Connection, message: "Token does not allow outgoing calls."}</code>.</p>
  
  <p>If I make a second call to <code>Twilio.Device.connect(phonecallParams)</code>, it works.<br>
  Also every subsequent call works.   But if I refresh the browser then the first call fails again.</p>
  
  <p>It used to work first time, every time.   But I last tested this weeks ago.
  Now it fails first time, every time.</p>
  
  <p>With the first, failed call:</p>
  
  <ol>
  <li>I get call my back-end to get a token</li>
  <li>I return the token to the JS method</li>
  <li>I call Twilio.Device.connect(phonecallParams)</li>
  <li>I get the error message. </li>
  <li>Nothing else happens.   There is no attempt to call my TwiML handler.</li>
  </ol>
  
  <p>With the second, successful call:</p>
  
  <ol>
  <li>I get call my back-end to get a token</li>
  <li>I return the token to the JS method</li>
  <li>I call Twilio.Device.connect(phonecallParams)</li>
  <li>My backend method that handles TwiML is called</li>
  <li>Call is initiated.</li>
  </ol>
  
  <p>In both cases:</p>
  
  <ul>
  <li><p>the token construction is identical the same method which creates the token the same way (and includes <code>new OutgoingClientScope(_twilioAccount.TwiMLApplicationSid)</code>)</p></li>
  <li><p>the phonecallParams are identical</p></li>
  </ul>
  
  <p>Would anyone have a clue as to what could be going on??</p>