Getting Started

Getting Started

 

To embed AloTech Softphone JS in your application first include https://telefoni-webrtc.appspot.com/static/webrtc/v1/webrtc.js in your html. You can use this address as a CDN source.

Get a session for the agent that you want to login using "Session Key" method in Authentication part of Public API v1.

Call AWJS.init() in your script.

AWJS.init()
AWJS.init({ hostname: hostname, session: session_generated_using_public_api, hostname: tenant_name, inputPhoneNumber: '#PhoneNumber', onLogout: function (response) { if (response.success) alert('Success!'); } });

After init call AWJS.start()

AWJS.start()
AWJS.start();

 

After start you can set a status for the agent. To receive inbound calls you must set the status of agent to "available".