==== XML ==== ==== PHP ==== function rpcf_add_tariff($tariff_name,$expire_date,$is_blocked,$balance_rollover) { //0x3012 if (!$this->connection->urfa_call(0x3012)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetString($tariff_name); $packet->DataSetInt($expire_date); $packet->DataSetInt($is_blocked); $packet->DataSetInt($balance_rollover); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()){ $ret = $x->DataGetInt(); // $this->connection->urfa_get_data(); } return $ret; }