<?php
////////////////////////////////////////
// Author : Kanishka Thilakabandara //
// All rights reserved //
/////////////////////////////////////
$client = new SoapClient(
"https://cucm-ip/realtimeservice/services/RisPort?wsdl",
array(
"exceptions"=>true,
"location"=>"https://cucm-ip:8443/realtimeservice/services/RisPort",
"login" => "admin",
"password"=> "ciscocisco",
"trace" => true
)
); //here we create a soap client to communicate with the cisco call manager's soap/axl interface.
$array['SelectBy'] = "DirNumber"; //you can use a criteria to select
$array['Status'] = "Registered"; //select only the registered user
$array['SelectItems']['SelectItem[0]']['Item'] = "3345"; //select phone with any description
$devices = $client->SelectCmDevice( "", $array ); //fetch all devices which matches criteria mentioned above
//print_r($devices->TotalDevicesFound);