sipsorcery icon indicating copy to clipboard operation
sipsorcery copied to clipboard

Messaging application using sipsorcery lib

Open bodyabos opened this issue 3 years ago • 1 comments

I want to create a simple messaging application using this lib. The main point is to make a P2P app that uses a STUN server to make behind NAT communication.

Maybe someone has such experience and can share a code sample.

bodyabos avatar Sep 22 '21 05:09 bodyabos

You haven't provided much detail and I'm not sure SIP or WebRTC are ideal for a text-only chat app. If I was to choose between them I would use WebRTC ahead of SIP due to it's better NAT handling.

Assuming the peers can't communcate directly, due to NAT, you'll need some way to co-ordinate signalling between them so as to set up the SIP or WebRTC session. That signalling server could just as easily coorindate your chat messages, hence the "not so sure" SIP or WebRTC are ideal.

I've only briefly looked at it but maybe matrix.org is close to what you're after. It's a decentralised message exchange protocol. It can be used as the signalling layer for SIP and WebRTC but maybe in your case it could serve as the transport for your chat application.

sipsorcery avatar Sep 22 '21 21:09 sipsorcery