On Mon, Nov 2, 2009 at 3:18 PM, 44072429 <44072429 at qq.com> wrote: > dear Mr: > ?hi ! > ?i am using pjnath to?develop nonsip applications which need p2p. > > ?this is my idear of how to use ice to make p2p. > ?can you give me some advice that is the right way to use ice. > > ?my usage like follows: > 1.there are 2 clients?a and b which want to use ice to make p2p. > 2.there are several TURN Servers(TS) which support?STUN?and one Login > Server(LS). > 3.the 2 clients first login the LS.and create instance and session as offer > like icedemo.c does. > 4.now 2 clients has its sdp.then if client a want to send a message to b .a > will send its sdp to LS aslo with b's login name ,and then LS send a's sdp > to b(This Is Offer Producture). > 5.when b received the a's sdp and a's login name.b send its sdp with a's > login name to LS.and?LS then it to a(This Is?Answer Producture). > 6.now b start ice connective checks. and when a received b's answer, a start > ice connective checks too. > 7.when connective checks was done. the p2p producture was done.then a can > send message to b with ice. > > questions: > 1.Am I Right? That sounds correct. > 2.if i am right ,can i create a and b's? sessions both as offer? You can. ICE has mechanism to resolve role conflict. But this would increase traffic roundtrips and negotiation delay slightly. > 3.is there any full implement in pjlib's demo? What's wrong with icedemo? Or if you want "full implementation" you can use pjsua of course. Cheers Benny