internal void FireSessionAcceptedAck(string strSessionId, IQResponseAction response)
 {
     if (OnSessionAcceptedAckReceived != null)
     {
         OnSessionAcceptedAckReceived(strSessionId, response, XMPPClient);
     }
 }
        public override bool NewIQ(IQ iq)
        {
            if ((OutgoingRequestMessage != null) && (iq.ID == OutgoingRequestMessage.ID))
            {
                /// Got an ack, analyze it an tell the client what is going on
                IQResponseAction response = new IQResponseAction();
                if (iq.Type != IQType.result.ToString())
                {
                    response.AcceptIQ = false;
                    response.Error    = iq.Error;
                }

                GoogleTalkSessionManager.FireNewSessionAckReceived(SessionId, response);
                return(true);
            }
            if ((AcceptSessionMessage != null) && (iq.ID == AcceptSessionMessage.ID))
            {
                /// Client accept our session

                IQResponseAction response = new IQResponseAction();
                if (iq.Type != IQType.result.ToString())
                {
                    response.AcceptIQ = false;
                    response.Error    = iq.Error;
                }

                GoogleTalkSessionManager.FireSessionAcceptedAck(SessionId, response);
                return(true);
            }
            if ((TerminateSessionRequest != null) && (iq.ID == TerminateSessionRequest.ID))
            {
                /// Got an ack, analyze it an tell the client what is going on
                ///
                GoogleTalkSessionManager.FireSessionTerminated(SessionId);
                IsCompleted = true;
                return(true);
            }


            return(false);
        }
Exemple #3
0
 void JingleSessionManager_OnSessionTransportInfoAckReceived(string strSession, IQResponseAction response, System.Net.XMPP.XMPPClient client)
 {
     if ((MediaSession != null) && (MediaSession.Session == strSession))
     {
         MediaSession.GotSendTransportInfoAck();
     }
 }