You can get some examples here
To get this working try the simple way:
1. Open examples/min/Click-to-Call-min.html and examples/min/Click-to-Call-min.js files
You can find these files in the WCS Client package
2. Edit js file
Replace
Code:
f.connect({urlServer: "ws://192.168.1.5:8080", appKey: "click2call"});
with
Code:
f.connect({urlServer: "ws://192.168.1.5:8080", appKey: "defaultApp", sipLogin:"mylogin", sipPassword:"mypassword", sipDomain:"mysipdomain"});
Here 192.168.1.5 should be your WCS host IP.
Then Replace
Code:
call.callee = "override_by_rest";
with
Code:
call.callee = "+3598...";
It is your phone number.
So the click-to-call link should work now as a simple phone without dial-pad.
In the next post I will describe how to setup security and keep SIP credentials on server-side.