
lwpUserAgent : Provides all features for managing connecting and maintaining the SIP connection over websockets.The phone funtionality is implemented by classes that encapsulated the logic for a particular component, those are:
VIDEOCANVAS ARRAY JAVASCRIPT CODE
npm run lintĪnalyze the source code for programming and style issues. npm run buildīuild and minimize the library for a production deployment. npm run statsĬreates a 'stats.json' file on the root of the project detailing statistics regarding the webpack artifact for use by tools such as webpack-visualizer. npm run watchīuild and automatically rebuild if any of the source files are changed. In addition, it starts a webpack-dev-server to serve the build artifacts for ease of development. NPM Scripts npm run devīuild and automatically rebuild if any of the source files are changed. This assumes the HTML body will contain empty elements with the IDs "dialpad", "call_list", "call_control", "media_devices", "audio_context" and "user_agent" where the corresponding default elements should be generated by libwebphone.


The quick start example configuration will render the default templates with the default behaviors. The library provides multiple ways to interact with it. The default export of libwebphone.js is a class that provides all access to the libraries functionality for an instance of a specific configuration. Protocol if WebRTC is not supported by the browser.

On supported browsers, the goal is to allow calls using WebRTC, and to fall back on the RTMP The goal of this library is to turn the browser in a softphone, using the correct protocol depending on the browser used by the client.
