<function name="rpcf_add_once_service_new" id="0x2116"> <input> <integer name="parent_id" /> <integer name="tariff_id" /> <integer name="service_id" /> <string name="service_name" /> <string name="comment" /> <integer name="link_by_default" /> <double name="cost" /> <integer name="drop_from_group" /> </input> <output/> </function>
function rpcf_add_once_service_new($parent_id, $tariff_id, $service_id, $service_name, $comment, $link_by_default, $cost, $drop_by_group) { //0x2116 if (!$this->connection->urfa_call(0x2116)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($parent_id); $packet->DataSetInt($tariff_id); $packet->DataSetInt($service_id); $packet->DataSetString($service_name); $packet->DataSetString($comment); $packet->DataSetInt($link_by_default); $packet->DataSetDouble($cost); $packet->DataSetInt($drop_by_group); $this->connection->urfa_send_param($packet); $this->connection->urfa_get_data(); }