4 ms·
So one thing I've been idly thinking about would be nice would be to set up a SIP server for my domain so that people can call me using handle@domain But when
by im3w1l 11mo ago
So one thing I've been idly thinking about would be nice would be to set up a SIP server for my domain so that people can call me using handle@domain
But when I looked into it very briefly it seemed most sip stuff is geared calling and receiving calls from phone numbers (which I'm completely uninterested in) and what I had in mind is surprisingly complicated to set up.
Would this project be suitable for my usecase?
- viraptor 11mo agoSIP doesn't care about numbers/letters. The username is pretty much opaque. You don't need a bare SIP stack implementation to achieve what you want. A simple proxy like opensips https://opensips.org/ https://opensips.org/ that redirects the invites to some POTS gateway will be enough. Or a full server like Asterisk if you want to tunnel the audio as well. You will still have to learn quite a bit about the protocol / how these things work.
- im3w1l 11mo agoOh huh. In that case is there a protocol like what I'm looking for? Where if I give someone handle@domain, their client will connect to the server at domain and ask for handle and try to initiate a voice call?
- viraptor 11mo agoSIP is the right protocol. I'm just saying you don't need a SIP library, but a SIP proxy/server. In a similar way that when you want to handle some web requests you want for example Apache and not LibHTTP. OpenSIPS will do what you need. But configuring it requires a bit of reading. There's no easy way in the VoIP world unfortunately.
- nik_ca 11mo agoThat sounds like perfect match for XMPP / Jabber. You can set up a server on your domain (e.g. 'Prosody') and then two XMPP clients that support calls (e.g. 'Conversations' for android) will be able to initiate voice/video calls, just like in telegram/whatsapp/viber/etc. More over, XMPP works like an e-mail, so user1@xmpp.org can message/call user2@yourdomian.com (if you allow your server to federate with other servers). Setting it up is not very simple though, you'd also need to set up STUN/TURN properly for direct calls and file transfers.