src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingServerSipImpl.java
/**
     * Notifies this <tt>MethodProcessorListener</tt> that a specific
     * <tt>CallPeer</tt> has processed a specific SIP <tt>Response</tt> and has
     * replied to it with a specific SIP <tt>Request</tt>.
     *
     * @param sourceCallPeer the <tt>CallPeer</tt> which has processed the
     * specified SIP <tt>Response</tt>
     * @param response the SIP <tt>Response</tt> which has been processed by
     * <tt>sourceCallPeer</tt>
     * @param request the SIP <tt>Request</tt> sent by <tt>sourceCallPeer</tt>
     * as a reply to the specified SIP <tt>response</tt>
     * @see MethodProcessorListener#responseProcessed(CallPeerSipImpl, Response,
     * Request)
     */
Notifies this MethodProcessorListener that a specific
CallPeer has processed a specific SIP Response and has
replied to it with a specific SIP Request.

@param sourceCallPeer the CallPeer which has processed the
specified SIP Response
@param response the SIP Response which has been processed by
sourceCallPeer
@param request the SIP Request sent by sourceCallPeer
as a reply to the specified SIP response
@see MethodProcessorListener#responseProcessed(CallPeerSipImpl, Response,
Request)
Notifies this MethodProcessorListener that a specific CallPeer has processed a specific SIP Response and has replied to it with a specific SIP Request . @param sourceCallPeer the CallPeer which has processed the specified SIP Response @param response the SIP Response which has been processed by sourceCallPeer @param request the SIP Request sent by sourceCallPeer as a reply to the specified SIP response @see MethodProcessorListener#responseProcessed ( CallPeerSipImpl Response Request )
public void responseProcessed(
            CallPeerSipImpl sourceCallPeer,
            Response response,
            Request request)
    {
        if (Response.OK == response.getStatusCode())
        {
            CSeqHeader cseqHeader
                = (CSeqHeader) response.getHeader(CSeqHeader.NAME);
            if ((cseqHeader != null)
                    && Request.INVITE.equalsIgnoreCase(cseqHeader.getMethod()))
            {
                /* if we have successfully established a SIP session, launch
                 * remote control
                 */
                /* we never launch directly sharing (future sharer is force to
                 * toggle remote control.
                 */
            }
        }
    }
public void responseProcessed ( CallPeerSipImpl sourceCallPeer , Response response , Request request ) { if ( Response . OK == response . getStatusCode ( ) ) { CSeqHeader cseqHeader = ( CSeqHeader ) response . getHeader ( CSeqHeader . NAME ) ; if ( ( cseqHeader != null ) && Request . INVITE . equalsIgnoreCase ( cseqHeader . getMethod ( ) ) ) { /* if we have successfully established a SIP session, launch
                 * remote control
                 */ /* we never launch directly sharing (future sharer is force to
                 * toggle remote control.
                 */ } } }
Notifies this <tt>MethodProcessorListener</tt> that a specific
 <tt>CallPeer</tt> has processed a specific SIP <tt>Response</tt> and has
 replied to it with a specific SIP <tt>Request</tt>.
Notifies this <tt > MethodProcessorListener< / tt > that a specific <tt > CallPeer< / tt > has processed a specific SIP <tt > Response< / tt > and has replied to it with a specific SIP <tt > Request< / tt > .
//enableRemoteControl(sourceCallPeer);