title: Twilio not dialing always
body: <p>we are using Twilio agent-dialing to initiate the call between two users. </p>
  
  <ol>
  <li>User A request a call to user B</li>
  <li>We get the number from the WS, then create a call with Twilio</li>
  <li>Twilio dials user A <strong>SOMETIMES fails here</strong></li>
  <li>When user A answers, then Twilio dials user B </li>
  </ol>
  
  <p>This works fine most of the time, but some times the call is not even initiated. We get the call.getSid() as if the call was launched, but the phone never rings. </p>
  
  <pre><code>    if (!from.equals(to)) {
          Twilio.init(TWILIO_ACCOUNT_SID, TWILIO_ACCOUNT_TOKEN);
          try {
              final String encodedNumber = URLEncoder.encode(to, "UTF-8");
              final String url = URL + "/connect/" + encodedNumber;
  
              final Call call = Call.creator(new PhoneNumber(from), new PhoneNumber(TWILIO_PHONE_NUMBER), new URI(url)).setTimeout(20).create();
              response.setMessage("Calling " + response.getItem().getDisplayName() + "'s " + params.getNumberType() + "...");
  
              LoggerUtil.out("Call done through Twilio: " + call.getSid() + " from: " + from + " to: " + to);
          } catch (UnsupportedEncodingException | URISyntaxException ex) {
              ex.printStackTrace();
              response.setMessage("I cannot dial " + response.getItem().getDisplayName() + "'s " + params.getNumberType() + " now, please try again later.");
          }
      } else {
          response.setMessage("You cannot call yourself.");
      }
  </code></pre>
  
  <p>OUTPUT: Call done through Twilio: CAabf9ba78b3b94921b000cda2ae6d2b91 from: +521234567890 to: +520987654321</p>
  
  <p>And, on Twilio console there are no errors on either. Also, we noticed that the $ decreases, which means we got charged (non-trial account), as the "call was made", but it was not.</p>
  
  <p>Does anybody faced same issue? The same happens SOMETIMES, for the Agent side (bullet #4 on above steps): User A answers, but user B is never called (no dialing sound or anything at all on the user A phone, just void):</p>
  
  <pre><code>        final Dial dial = new Dial.Builder().number(number).build();
          final VoiceResponse voiceResponse = new VoiceResponse.Builder().dial(dial).build();
  </code></pre>
  
  <p>As said, this is happening sometimes, and most of the times for non-US phones (it also happens for US ones, but in small rates).</p>
  
  <p>Thanks in advance.</p>