юзаю функцию rpcf_add_service_to_user, но еще один IP не добавляется:(
Код: Выделить всё
<?xml version="1.0"?>
<urfa>
<parameter name="user_id" value="1"/>
<parameter name="account_id" value="1"/>
<parameter name="slink_id" value="1"/>
<parameter name="service_id" value="2"/>
<parameter name="service_type" value="3"/>
<parameter name="discount_period_id" value="5"/>
<parameter name="ip_addpess" value="172.20.12.5"/>
<parameter name="mask" value="255.255.255.255"/>
<call function="rpcf_add_service_to_user">
</call>
</urfa>
Получаю в ответ:
Код: Выделить всё
# ./utm5_urfaclient -debug -a qwe
Notice: Mar 04 13:40:57 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg
Processing action: info5
<call> tag: rpcf_add_service_to_user
Processing call rpcf_add_service_to_user
URFA Call: 0x2551
account_id=>'1';
discount_period_id=>'5';
ip_addpess=>'172.20.12.5';
mask=>'255.255.255.255';
service_id=>'2';
service_type=>'3';
slink_id=>'1';
user_id=>'1';
process_input start
INDEXES (0) : 0
Passing int <user_id> value <1>
INDEXES (0) : 0
Passing int <account_id> value <1>
INDEXES (0) : 0
Passing int <service_id> value <2>
INDEXES (0) : 0
Passing int <service_type> value <3>
Passing string <return_type> value <>
Passing int <tariff_link_id> value <0>
process_input start
INDEXES (0) : 0
Passing int <slink_id> value <1>
Passing int <is_blocked> value <0>
INDEXES (0) : 0
Passing int <discount_period_id> value <5>
Passing int <start_date> value <1236174057>
Passing int <expire_date> value <2000000000>
Passing int <unabon> value <0>
Passing int <unprepay> value <0>
expression: size(ip_address) var: ip_address indexes:
FAILED TO PARSE INDEXES:
get_expression_value: size: variable not foubnd: ip_address
Passing int <ip_groups_count> value <0>
input loop begin
expression: size(ip_address) var: ip_address indexes:
FAILED TO PARSE INDEXES:
get_expression_value: size: variable not foubnd: ip_address
from <0> count <0> counter <i>
input loop end
expression: size(quota) var: quota indexes:
FAILED TO PARSE INDEXES:
get_expression_value: size: variable not foubnd: quota
Passing int <quotas_count> value <0>
input loop begin
expression: size(quota) var: quota indexes:
FAILED TO PARSE INDEXES:
get_expression_value: size: variable not foubnd: quota
from <0> count <0> counter <i>
input loop end
process_input end
process_input end
account_id=>'1';
discount_period_id=>'5';
ip_addpess=>'172.20.12.5';
mask=>'255.255.255.255';
service_id=>'2';
service_type=>'3';
slink_id=>'1';
user_id=>'1';
account_id=>'1';
discount_period_id=>'5';
ip_addpess=>'172.20.12.5';
mask=>'255.255.255.255';
service_id=>'2';
service_type=>'3';
slink_id=>'1';
user_id=>'1';
<?xml version="1.0"?>
<urfa>
<session key="e984ae49c3823e66d633d9a021f86681"/>
<call function="rpcf_add_service_to_user">
<output/>
</call>
</urfa>