For a number of BT Osmosoft demos we have demonstrated how to make phone calls from within a TiddlyWiki, I thought i would provide a post which explains exactly what we did in order to set up the PHP side of these demos.
The demo I am refering to can be found at the following URL's:
PHP 5.2
OpenSSL and SOAP PHP extensions
Note : Before you can use the SDK you will need to register an application (One registration covers all of your programs)
You can register application at the URL below:
https://sdk.bt.com/Default.aspx?TabId=127
In order to run the certificate generation tool you may need the latest version of “Java Runtime Environment (JRE)” from http://java.sun.com/javase/downloads/index.jsp (you will receive an error when attempting to run the tool if you require this upgrade.)
When you use the tool 3 files will be generated on your desktop. (I called my app Umbrella)
_APPLICATIONNAME\_Sandbox\_PrivateKey.pem_
_APPLICATIONNAME\_Sandbox\_PublicKey.pem_
_APPLICAIONNAME\_Sandbox\_SignedCert.pem_
Two of those files :
_APPLICATIONNAME\_Sandbox\_PrivateKey.pem_
_APPLICAIONNAME\_Sandbox\_SignedCert.pem_
Should then be place in a folder called keys (which you may need to create).
\examples\common.php
\\examples\\cmds\\makeCall.php
Change the variables for :
$calling = “tel:+44791″;
$called = “tel:+44791″;
You will need to modify these two lines so that they can receive an input from the URL, I would suggest changing these to:
$calling ='tel:'.$\_REQUEST\['callingParty'\];
$called = 'tel:'.$\_REQUEST\['calledParty'\] ;
You will need to ensure that the variable names are the same as the variables sent my TiddlyWiki.
Let me know if you have any problems.