Have a quick look at the
webphone functionalities by checking the solutions/examples from the left side.
If you don't have a SIP server or VoIP account yet, you can use our
VoIP service:
- Server address: voip.mizu-voip.com
- Account: create free VoIP account from here or use the following username/passwords: webphonetest1/webphonetest1, webphonetest2/webphonetest2 (others might also use these public accounts so calls might be misrouted)
- Basic: simplest usage example
- Demo/Test: try out the webphone by using this page
- Softphone: implements a full featured VoIP softphone in browser which can be used as is
- Click to call: click to call button
- Linkify: convert all phone number like strings on your website to click to call links
- API: use the “webphone_api.js” file. Check the examples and the documentation for the usage.
- For more details download or check the documentation.
The public JavaScript API can be found in "webphone_api.js" file, under global javascript namespace "webphone_api".
To be able to use the webphone as a javascript VoIP library, just copy the webphone folder to your web project and add the webphone_api.js to your page.
Simple example:
<head>
<!--include the webphone_api.js to your webpage and set the issdk parameter to true-->
<script src="webphone_api.js"></script>
<script>webphone_api.parameters.issdk = true;
</script>
</head>
<body>
<script>
//set parameters (alternatively these can be also preset in your html)
webphone_api.setparameter(
'serveraddress', SERVERADDRESS);
// Replace the word in uppercase with the value
webphone_api.setparameter(
'username', USERNAME);
// Replace the word in uppercase with the value
webphone_api.setparameter(
'password', PASSWORD);
// Replace the word in uppercase with the value
//see the “Parameters” section in the documentation for more options
//start the webphone (optional but recommended)
webphone_api.start();
//make a call (usually initiated by user action, such as click on a click to call button)
webphone_api.call(number);
//hangup
webphone_api.hangup();
//send instant message
webphone_api.sendchat(number, message)
</script>
</body>
For more details consult the Javascript API section in the
documentation.