IP-зоны в справочнике.

XML

<function name="rpcf_get_ipzones_list" id="0x2800">
    <input/>
    <output>
      <integer name="zones_count" />
      <for name="i" from="0" count="zones_count">
        <integer name="zone_id" array_index="i" />
        <string name="zone_name" array_index="i" />
      </for>
    </output>
  </function>

PHP

 function rpcf_get_ipzones_list() { //0x2800
      $ret=array();
      if (!$this->connection->urfa_call(0x2800)) {
         print "Error calling function ". __FUNCTION__ ."\n";
         return FALSE;
      }
      $x = $this->connection->urfa_get_data();// count
      $count = $x->DataGetInt();
      $ret['count'] = $count;
      for ($i=0;$i<$count;$i++) {
         $x = $this->connection->urfa_get_data();
         $ipzone['zone_id']=$x->DataGetInt();
         $ipzone['zone_name']=$x->DataGetString();
         $ret['ipzones'][]=$ipzone;
      }
      $this->connection->urfa_get_data();
      return $ret;
   }