title: Sinch Voip Calling No Response
body: <p>I'm using Sinch to make a Voip Calling application. I'm using App to Phone call. When I click on the button to call the number there is no response. I've watched a video as well but unfortunately unable to make the code work. I don't understand from where I can get the user ID. I've entered the App key, App Secret and Environment but I don't know from where I can get the User id.</p>
  
  <p>Is the code not working because of User id? Or Is there some other problem in the code?</p>
  
  <p>Tutorial: <a href="https://www.youtube.com/watch?v=NkvyD6AQdfY&amp;t=12s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=NkvyD6AQdfY&amp;t=12s</a></p>
  
  <p>Code:</p>
  
  <pre><code>final SinchClient sinchClient = Sinch.getSinchClientBuilder()
              .context(this)
              .userId(USER_ID)
              .applicationKey(APP_KEY)
              .applicationSecret(APP_SECRET)
              .environmentHost(ENVIRONMENT)
              .build();
  
      sinchClient.setSupportCalling(true);
      sinchClient.start();
  
      callState = (TextView) findViewById(R.id.callState);
      callButton = (Button) findViewById(R.id.callButton);
  
      callButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              if (call == null) {
                  call = sinchClient.getCallClient().callPhoneNumber(PHONE_NO);
                  call.addCallListener(new SinchCallListener());
                  callButton.setText("Hang Up");
              } else {
                  call.hangup();
              }
          }
      });
  
  private class SinchCallListener implements CallListener {
      @Override
      public void onCallEnded(Call endedCall) {
          call = null;
          callButton.setText("Call");
          callState.setText("");
          setVolumeControlStream(AudioManager.USE_DEFAULT_STREAM_TYPE);
      }
  
      @Override
      public void onCallEstablished(Call establishedCall) {
          callState.setText("connected");
          Toast.makeText(MainActivity.this,"Call Established  "+call.getDetails(),Toast.LENGTH_LONG).show();
          setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);
      }
  
      @Override
      public void onCallProgressing(Call progressingCall) {
          callState.setText("ringing");
          Toast.makeText(MainActivity.this,"Ringing",Toast.LENGTH_LONG).show();
      }
  
      @Override
      public void onShouldSendPushNotification(Call call, List&lt;PushPair&gt; pushPairs) {
      }
  }
  </code></pre>