0

How to Identify Online users in WebRTC app? Iam using Sip signalling and Sip.js. Iam unable to find proper documentation or on web. I thought to send invite request to all contacts and if one responds,that one is online,BUT for sending request back from client 2 we need to create peerconnection or data Channel, that wil be against Proper technique..so pls suggest me something Many begginers may be facing this problem so I thought this will teah me plus benefit others.

coldcoder8502
  • 77
  • 1
  • 5
  • Hi, welcome to stack overflow. Please refer the [ask] link for more details on how to ask a question and update your question accordingly. – Jeroen Heier Aug 12 '18 at 17:27
  • Identifying online users can be achieved using any suitable signalling channel(web sockets etc), however please remember that WebRTC does not provide or mandates any signalling protocol, so there's no out of the box support for online presence in WebRTC per say. Signalling part has been left to the users whatever they choose to implement. – Raghvendra Kumar Aug 14 '18 at 12:33

1 Answers1

1

It's not obvious from your question if you use some SIP server along with sip.js.

  1. If you do you can use built-in mechanisms: Asterisk qualify, Freeswitch Sofia ping, etc. Most of such mechanisms send SIP OPTIONS to client and consider any response as success.
  2. In case of serverless setup you could use SIP MESSAGE to "ping" remote party. You shouldn't just send MESSAGE to all possible peers rather maintain the list of registered one (similar to SIP REGISTER approach in SIP server based applications).