Call Transfer Scenario 1 (Call Transfer Rejected)

The following scenario illustrates the process to attempt a call transfer that is rejected by the transferred party.

A call transfer is attempted and the referred party rejects the transfer.

Party A and party B are in session (RTCSS_CONNECTED). A wants to refer B to C.

// A refers the session to B.
IRTCSessionCallControl::Refer()

// A receives a session state change event.
IRTCSessionStateChangeEvent
	(RTCSS_REFER)

// A is notified that the session is 
// in the process of referring.
IRTCSessionReferStatusEvent
	(RTCSRS_REFERRING)

                                           // B receives notification that the session
                                           // has been referred to another user.
IRTCSessionReferStatusEvent                IRTCSessionReferredEvent
             (RTCRS_REFERRED)              IRTCSessionReferredEvent::Reject()

// A is notified that the session  
// was rejected.
IRTCSessionReferStatusEvent
(RTCSRS_REJECTED)

// The session refer was rejected and 
// the session returns to the original state.
IRTCSessionStateChangeEvent
	(RTCSS_CONNECTED)