Note that there are some explanatory texts on larger screens.

plurals
  1. POI am working with Twilio android SDK, When i click on hangup button always getting error ?not able to disconnect the call after dialing?
    primarykey
    data
    text
    <p>I have successfully integrated Twilio SDK for android but when i am trying to make call with it its not connecting and showing error message in logcat i am getting following errors: </p> <pre><code>1) Failed to hangup call due to error code: 70015, message: pjsua_call_hangup(): Object already exists (PJ_EEXISTS) 2) Connection disconnected with error code 31000 and message Generic error this both errors occurs when i am calling disconnect method if i comment this method then my calling is working fine and i make call but if i call this method phone.disconnect(), i am getting error shown as above. This is my methods which i am using to make calls and to disconnect the calls. </code></pre> <p>////// To Make Calls </p> <pre><code>public void connect(String phoneNumber) { Map parameters = new HashMap(); parameters.put("PhoneNumber", phoneNumber); connection = device.connect(parameters, null /* ConnectionListener */); if (connection == null) Log.w(TAG, "Failed to create new connection"); } </code></pre> <p>// To Disconnect Phone </p> <pre><code>public void disconnect() { if (connection != null) { connection.disconnect(); connection = null; // will null out in onDisconnected() if (basicConnectionListener != null) basicConnectionListener.onConnectionDisconnecting(); } } </code></pre> <p>and on my OnClick event: </p> <pre><code>public void onClick(View view) { if (view.getId() == R.id.dialButton) Toast.makeText(getApplicationContext(), "Dialing...", Toast.LENGTH_LONG).show(); phone.connect("PHONE NUMBER"); if (view.getId() == R.id.hangupButton) Toast.makeText(getApplicationContext(), "Call Disconnected...", Toast.LENGTH_LONG).show(); phone.disconnect(); Please suggest me and help me because i tried all possible thing for hangout but still not able to solve it.Thanks in advance. ![enter image description here][1] </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload