1 Reply Latest reply on Feb 27, 2011 2:42 PM by pushkinma

    (solved)onPeerConnect does'nt work?

    pushkinma

      Hi, people! I found the problem in Cirrus.

      Connect as "PeerA" from Google Crome, "PeerB" from Google Chrome Incognito Mode and "PeerC" from Firefox 3.6.

      PeerA call PeerB and PeerB accept call. Then, if PeerC call PeerB, in PeerB log will be written as follows

      ---

      Caller connecting to media stream: f34f06ac75fcb184e7c1a6ef4290ed4a6b8d959849036f53b9db8addf1e46b47

      Outgoing stream event: NetStream.Play.Reset

      Outgoing stream event: NetStream.Play.Start

      NetConnection event: NetStream.Connect.Success

      Connection from: f34f06ac75fcb184e7c1a6ef4290ed4a6b8d959849036f53b9db8addf1e46b47

      NetConnection event: NetStream.Connect.Success

      Connection from: f34f06ac75fcb184e7c1a6ef4290ed4a6b8d959849036f53b9db8addf1e46b47

      Caller connecting to listener stream: f34f06ac75fcb184e7c1a6ef4290ed4a6b8d959849036f53b9db8addf1e46b47

      onPeerConnect: all rejected due to state: 4

      ---

      That is, he connected PeerB, BUT PeerB not received a request(buttons "Accept","Reject")!!! Then, if PeerC push Cancel call, PeerB logged follows:
      ---
      NetConnection event: NetStream.Connect.Closed
      Hanging up call
      Incoming stream event: NetStream.Play.Stop
      Outgoing stream event: NetStream.Unpublish.Success
      NetConnection event: NetStream.Connect.Closed
      Hanging up call
      NetConnection event: NetStream.Connect.Closed
      Hanging up call
      NetConnection event: NetStream.Connect.Closed
      Hanging up call
      ---
      and communication between PeerA and PeerB interrupted!!!
      In order words, PeerC  may interrupt a call between PeerA and PeerB without consent by PeerA or PeerB
      When I learned source, I found the function onPeerConnect return value does not affect anything! It may always return only true or only false, but the result does not different!
      Why??? WTF??? Is it bug?