Mountain View
Jabber SDK API Documentation

Tutorial: End Conversation

End Conversation

Title In this tutorial it will be shown how to end Telephony Conversation. Ending a conversation will trigger"onConversationEnded" event. First it needs to be checked if conversation has canEnd capability, and if it does, then call TelephonyConversation.end as it is shown in the snippet below:

        var conversation;

        // ...
        // Here we choose which conversation we want to end.
        // ...

        if(conversation.capabilities.canEnd)
        {
            // End conversation.
            conversation.end();
        }
    
Once the conversations has ended it no longer exists and calling any of the conversation's API will fail with InvalidConversation error.

Next

Previous