Is there any possibility to use SIP in Cordova/Phonegap? I've not found any plugin, yet. Support for WebRTC is also not available (but planned in 2.x, according to their roadmap).
Supporting SIP
or WebRTC
on Android has nothing to do with PhoneGap
/Cordova
, even though they could be added as some extension but naturally they come with the browser provided to PhoneGap by the OS. Right now you need to look for external libraries to do that for you.
You may add an extension to your PhoneGap (written in Java) yourself to communicated to some SIP
server. Or if you would like you can use a Javascript library to implement the SIP protocol for you (like sipml5) but if you choose to use this late solution, your browser needs to support Websocket
or WebRTC
(both are applicable). As far as I know browser plugin provided to PhoneGap by Android does not support neither of the mentioned technologies, but my knowledge is for 6 month ago. Back then I tried to implement my own Websocket PhoneGap extension to provide the PhoneGap with Websocket
. But I've never tested it with sipml5 and have no idea what problems you might encounter.
There are two parts to implement WerbRTC in cordova:
For first part I used sipjs for IOS & android platforms. But for second part, I use different plaugins base each platform:
If you need more information let me know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With