Frequently Asked Questions (FAQs):Can I setup a "Click to Call" button on my website?
VoIP: Can I setup a "Click to Call" button on my website?
You can read more about the "Web Call"/"Click to call" service by logging into the FreeVirtualNumbers control panel at http://voip.freevirtualnumbers.co.uk/login/webcall.
If you would like to use a "click to call" button on your website or some other system,
it is easy to generate a request to our servers.
You must simply send an HTTP POST to http://voip.freevirtualnumbers.co.uk/login/webcall with the following parameters:
- email: The customer account to login as or one of your extension numbers.
- pass: The password for the customer account, or in the case of an extension login, the SIP password or voicemail PIN.
- extension: The full 7 digit extension to originate the call from.
- destination: The destination number as you would dial it from a VoIP phone.
- cidname: Optional. If specified on a non-reverse call, this name will be used as the displayed caller
name when the call is placed to the local extension. This may be useful in click-to-call systems so that it is
immediately obvious who the called party is.
- reverse: Whether to reverse the call order, i.e. place the call to the destination before ringing the extension.
This should be set to 1 to reverse the order, or 0 (or omitted completely) to use the default order.
Within a PHP script, you could simply write:
<?
@file("http://voip.freevirtualnumbers.co.uk/login/webcall?email=XXXX@example.com&pass=yourpassword&extension=1234567&destination=08717502474");
?>
Please note that whichever method you use, at present there is no way to determine if the call was successful from the output of the webcall request.