SIP.js just for messaging?

259 views
Skip to first unread message

bad...@gmail.com

unread,
Oct 24, 2017, 4:07:04 PM10/24/17
to SIP.js
Hi,

Just stumbled upon SIP.js when looking for examples och setting up chats with WebRTC. I want to be able to send my messages to a list of users via WebRTC but I'm not interested on audio/video. I'm not familiar with SIP before.

Would you still recommend me to try to use SIP.js for this or is it out of scope for my use case?

Thanks

Eric Tamme

unread,
Oct 24, 2017, 4:08:46 PM10/24/17
to SIP.js
You can use sip.js to just send a message.  See https://sipjs.com/guides/send-message/


--
You received this message because you are subscribed to the Google Groups "SIP.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sip_js+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sip_js/2050d14d-aa20-4e77-8c24-ff99d8125860%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bad...@gmail.com

unread,
Oct 24, 2017, 4:35:32 PM10/24/17
to SIP.js
On Tuesday, October 24, 2017 at 10:08:46 PM UTC+2, Eric Tamme wrote:
> You can use sip.js to just send a message.  See https://sipjs.com/guides/send-message/
>
>
> On Tue, Oct 24, 2017 at 2:07 PM, <bad...@gmail.com> wrote:
> Hi,
>
>
>
> Just stumbled upon SIP.js when looking for examples och setting up chats with WebRTC. I want to be able to send my messages to a list of users via WebRTC but I'm not interested on audio/video. I'm not familiar with SIP before.
>
>
>
> Would you still recommend me to try to use SIP.js for this or is it out of scope for my use case?
>
>
>
> Thanks
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "SIP.js" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to sip_js+un...@googlegroups.com.
Ah, didn't realize I could use SIP.UA instead of SIP.WebRTC.Simple.
So my guess is that messages are not send directly between users with WebRTC but via the server?

Eric Green

unread,
Oct 24, 2017, 4:37:34 PM10/24/17
to SIP.js
You can use simple as well. https://sipjs.com/api/0.8.0/simple/#messagedestination-message

But yes the connection is not direct between the users. You could set up a data-channel, but that is a rarely used use case for SIP.js, so I removed the guides for that.

-Eric Green

bad...@gmail.com

unread,
Oct 24, 2017, 4:51:57 PM10/24/17
to SIP.js
Alright. Do you have any old document somewhere that maybe i could look at?

Eric Green

unread,
Oct 24, 2017, 4:53:32 PM10/24/17
to SIP.js
The Session Description Handler would yield it all useless for setting up a data channel. You need to create your own session description handler and have it create a data-channel. 
Reply all
Reply to author
Forward
0 new messages