Ejemplo n.º 1
0
 void JingleSessionManager_OnNewSessionAckReceived(string strSession, System.Net.XMPP.Jingle.IQResponseAction response, System.Net.XMPP.XMPPClient client)
 {
     if ((MediaSession != null) && (MediaSession.Session == strSession))
     {
         MediaSession.GotNewSessionAck();
     }
 }
Ejemplo n.º 2
0
 void JingleSessionManager_OnSessionAcceptedAckReceived(string strSession, System.Net.XMPP.Jingle.IQResponseAction response, System.Net.XMPP.XMPPClient client)
 {
     if (response.AcceptIQ == true)
     {
         Console.WriteLine("Session {0} has said OK to our Accept invitation", strSession);
         if ((MediaSession != null) && (MediaSession.Session == strSession))
         {
             MediaSession.GotAcceptSessionAck(null);
         }
     }
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 void JingleSessionManager_OnSessionTransportInfoAckReceived(string strSession, IQResponseAction response, System.Net.XMPP.XMPPClient client)
 {
     if ((MediaSession != null) && (MediaSession.Session == strSession))
     {
         MediaSession.GotSendTransportInfoAck();
     }
 }