WebPhone Implementation Guide - HostMyCalls/APIAccessCodeSamples GitHub Wiki
The webphone is pretty straight forward to implement.
- Include the webphone library (https://pinger.hostmycalls.com/wp/hmc-webphone-library.js) in the header of your page
- Include the following script at the bottom of your page and fill in the SBC server address, login details, and the id of the element to load the webphone into.
var options = {
/* sbc server address */
sbcServer: "",
/* login details below */
loginId: "",
passWord: "",
phoneId: ""
};
var webPhone = new HMCWebPhone(options);
webPhone.Load();
Navigate to the code section (https://github.com/HostMyCalls/APIAccessCodeSamples/blob/master/test.html) for a very simple test page