Use Cisco AXL API from PHP
Sometimes if very usefull to syncronize data, contacts and user between system, Cisco CallManager can be managed through AXL API.
This is an example to retrieve list of end-user using SQL query.
I leave some debug function commented for other purpose.
<?php
$client = new SoapClient(“AXLAPI.wsdl”,
array(‘trace’=>true,
‘exceptions’=>true,
‘location’=>”https://cucm-ip:8443/axl”,
‘login’=>’administrator’,
‘password’=>’password’,
));
//$response = $client->getUser(array(“userid”=>”administrator”));
$sql = “select * from enduser”;
$response = $client->executeSQLQuery(array(“sql”=>$sql));
//$response = $client->__getFunctions();
echo “<pre>”;
var_dump($response);
?>