SIP.js and Electron

1,422 views
Skip to first unread message

toyeo...@gmail.com

unread,
Jun 12, 2017, 11:52:00 AM6/12/17
to SIP.js
I am currently trying to make a call using sip.js and electron. I have successfully registered my user agent but wanted to know if any one has successfully made a call work while using SIP js and electron. any advice or examples will be greatly appreciated. 

I am using freeswitch as my sip server.

 I am not using a custom mediaHandlerFactory since electron should have that built in.

James Criscuolo

unread,
Jun 12, 2017, 12:23:13 PM6/12/17
to SIP.js
Hi toyeonikoyi,
  We are currently buiiding a desktop app with electron and did not have to touch SIP.js. We use the default media handler.

Thanks,
James

toyeo...@gmail.com

unread,
Jun 12, 2017, 3:47:15 PM6/12/17
to SIP.js
Can I ask what operating system you are currently running maybe that could be my issue. I am using Centos 7 linux.

Thank you for he quick response

James Criscuolo

unread,
Jun 14, 2017, 9:47:46 AM6/14/17
to SIP.js
We are building on the latest MacOS, and using electron-builder have built packages for Mac, Linux, and Windows. We've had some problems with the Linux build, but the other two worked without too much extra effort.

djalma...@gmail.com

unread,
Jun 22, 2017, 6:40:03 PM6/22/17
to SIP.js
We use electron and it works like a charm. Despite the fact that chrome have several bugs with audio devices... sip.js works pretty well.
Message has been deleted
Message has been deleted

James Criscuolo

unread,
Jul 13, 2017, 12:46:34 PM7/13/17
to SIP.js
So I did just witness this error for the first time today, when I switched my electron build from JIT to AOT. It does not appear to affect anything, I still get two way audio.

On Wednesday, July 12, 2017 at 1:43:26 PM UTC-4, Chiril Saragiu wrote:
hey can you share an example of your app, as I'm struggling to use SIP and Electron and keep getting  
`audio_send_stream.cc(90)] Failed to set up send codec state.`
what am I missing?
Message has been deleted
Message has been deleted

James Criscuolo

unread,
Jul 13, 2017, 1:13:53 PM7/13/17
to SIP.js
Getting media streams is an entirely different question, you can see how that works in our mediaHandler:


As for the termination, if any SIP signaling is being sent, I'd be curious to see it (please put it in a gist). We also do Invite w/o SDP, which may be helping us.

On Thursday, July 13, 2017 at 12:59:13 PM UTC-4, Chiril Saragiu wrote:
How do you get the media streams ? can you share this bit of code ? 

2017-07-13 19:57 GMT+03:00 Кирилл Саражиу <saragiu...@gmail.com>:
Well each time I try to call from Electron - the call is terminated. Should I try to find the issue on the sip server ? 

--
You received this message because you are subscribed to a topic in the Google Groups "SIP.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sip_js/y7GExO5SEsE/unsubscribe.
To unsubscribe from this group and all its topics, 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/44d3bba9-9280-410b-9449-9fadacac0bcf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
С уважением, Саражиу Кирилл / Kind Regards, Saragiu Kirill



--
С уважением, Саражиу Кирилл / Kind Regards, Saragiu Kirill

abdulla...@gmail.com

unread,
Jan 31, 2018, 3:19:55 AM1/31/18
to SIP.js
I think you need to add NodeJs webrtc module.
Reply all
Reply to author
Forward
0 new messages