VERSION
VERSION
The wrapper version.
The wrapper version number.
Monitor Recording Web Service.
setWebServicesServer(string $wsserver)
Set the web services server address.
This allows the web service requests to be directed to a specific server. The default is https://ws-<cloud_id>.aculabcloud.net
string | $wsserver | The base URL of the web services server. |
setCryptoMethod(integer $method)
Set the crypto method used when connectiing to the web services server.
This allows a specific crypto method to be used when connecting to the web service server. The values should be one of the STREAM_CRYPTO_METHOD_TLSv1_N_CLIENT constants. The default is STREAM_CRYPTO_METHOD_ANY_CLIENT.
integer | $method | The crypto method to use. |
setProxy(string $proxy, boolean $request_fulluri)
Configures the proxy server to use when making Web Service requests.
string | $proxy | URI specifying address of proxy server. (e.g. tcp://proxy.example.com:5100). |
boolean | $request_fulluri | When set to TRUE, the entire URI will be used when constructing the request. While this is a non-standard request format, some proxy servers require it. |
listFiles(string $application_id) : array
List monitor recording files.
This lists the filenames of monitor recordings created for the given application instance id. There will be one file for each outbound call placed by the application for which any media was received. Please note that these files are kept for approximately two weeks before being deleted.
string | $application_id | An application instance id. |
Returns an array of FileDetails objects.
getFileContent(string $filename) : string
Get the monitor file contents.
This fetches the specified monitor recording file, using a filename discovered by use of \Aculab\WebServicesWrapper\MonitorRecordingWebService::listFiles() and returns the contents.
string | $filename | A monitor recording filename as returned by listFiles(). |
The file contents.
getFileToFile(string $filename, string $local_filename) : integer
Get the file contents to a local file.
This fetches the specified monitor recording file, using a filename discovered by use of \Aculab\WebServicesWrapper\MonitorRecordingWebService::listFiles() and stores is as a local file.
string | $filename | A monitor recording filename as returned by listFiles(). |
string | $local_filename | The local file to write to. |
The amount of data written to the local file.