Hi, I thought about this too and checked out a few things a while back. Didnt actually get to do anything about it coz of a change of job ;-). This was what i thought i'd do but i'm sure there are better ideas out there. PJSIP --------> P2P gateway (SIP parser + OpenDHT client) ------------> 1. Create a B2BUA that does the following a. take the SIP request and parse the SIP URL b. get the remote ip address using OpenDHT protocol or ur favored p2p protocol. c. replace the SIP URL with the remote IP d. forward the request. 2. Start PJSIP setting the outbound proxy IP to the created P2P gateway Since all u probably need from P2P is to get and maintain the remote party's IP, using the http://www.opendht.org/ service would make things easier especially if we skip the NAT part of things for the moment. If both the p2p gateway and PJSIP are on the same system, then doing the p2p IP resolution before sending the SIP request would skip the need for a gateway. Hope this helps, Nigel From: johnswyen@xxxxxxxxxxxxxxx To: pjsip at lists.pjsip.org Date: Mon, 20 Oct 2008 11:59:21 +0800 Subject: Re: simple p2p connection hi all, i also meet the same problem and got no idea what to do we'll be very appreciated if there is a sample application or some guidence for us. br, John ----- Original Message ----- From: Chris Bick To: pjsip at lists.pjsip.org Sent: Monday, October 20, 2008 10:14 AM Subject: simple p2p connection Hi, I am very interested in using pjsip in the project I'm working on. The project needs to establish a direct p2p network connections between two PCs. The project does not need any "Media" capabilities. It just needs to form some sort of socket connection between two computers. I know this is possible using the combination of pjsip and pjnath. I've look through all the sample applications to figure out how this would be possible, but I could find a simple application that establishes just a socket(UDP,TCP) between two peers using SIP, STUN, TURN, and ICE. (Once the connection is established I would use it to send raw data between the two peers) Is there a sample application that does this? If so, could some one point me to it? If not, would it be possible for some one to put one together? Thanks, -cb _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081020/78ebb8f5/attachment.html>