Mountain View
Jabber SDK API Documentation

Tutorial: Transfer Conversation

Transfer Conversation

Title In this tutorial it will be covered how to transfer Telephony Conversation to another number. In order to transfer a conversation it need to be checked if conversation has canTransfer capability, and if it does, then call TelephonyConversation.transfer. After that all that is left is to call TelephonyConversation.completeTransfer like it is shown in the snippet below:

        var conversation;

        // ...
        // Here we choose conversation that we want to transfer to another number.
        // ...

        // Number to which conversation will be transferred.
        var number = "1111";

        if(conversation1.capabilities.canTransfer)
        {
            // Initiating transfer of conversation to number "1111";
            conversation.transfer(number);

            // Completing initiated conversation transfer.
            conversation.completeTransfer();
        }
    
Once the transfer is complete "onConversationEnded" event will be fired for conversation that has been transferred.

Next

Previous