==== XML ==== ==== PHP ==== function rpcf_user5_get_tel_report($time_start,$time_end) { //-0x4099 if (!$this->connection->urfa_call(-0x4099)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($time_start); $packet->DataSetInt($time_end); $this->connection->urfa_send_param($packet); if($x = $this->connection->urfa_get_data()){ $count=$x->DataGetInt(); $ret['count']=$count; for ($i=0;$i<$count;$i++) { $dhs_log_size=$x->DataGetInt(); $tel['dhs_log_size']=$dhs_log_size; for ($j=0;$j<$dhs_log_size;$j++) { $report['recv_date']=$x->DataGetInt(); $report['recv_date_plus_acct_sess_time']=$x->DataGetInt(); $report['acct_sess_time']=$x->DataGetInt(); $report['Calling_Station_Id']=$x->DataGetString(); $report['Called_Station_Id']=$x->DataGetString(); $report['dname']=$x->DataGetString(); $report['total_cost']=$x->DataGetDouble(); $tel['report'][]=$report; } $ret['tel'][]=$tel; unset($tel); } return $ret; } } Функцию нужно проверить.