Как добавить юзеру еще один IP через urfa?

Технические вопросы по UTM 5.0
Ответить
Beavis
Сообщения: 205
Зарегистрирован: Вт июн 21, 2005 00:44

Как добавить юзеру еще один IP через urfa?

Сообщение Beavis »

Скажите как добавить еще один IP юзеру?
юзаю функцию 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>
(все *_id правильные)

Получаю в ответ:

Код: Выделить всё

# ./utm5_urfaclient -debug -a qwe
 Notice&#58; Mar 04 13&#58;40&#58;57 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient.cfg
Processing action&#58; info5
<call> tag&#58; rpcf_add_service_to_user
Processing call rpcf_add_service_to_user
URFA Call&#58; 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 &#40;0&#41; &#58; 0

Passing int <user_id> value <1>
INDEXES &#40;0&#41; &#58; 0

Passing int <account_id> value <1>
INDEXES &#40;0&#41; &#58; 0

Passing int <service_id> value <2>
INDEXES &#40;0&#41; &#58; 0

Passing int <service_type> value <3>
Passing string <return_type> value <>
Passing int <tariff_link_id> value <0>
process_input start
INDEXES &#40;0&#41; &#58; 0

Passing int <slink_id> value <1>
Passing int <is_blocked> value <0>
INDEXES &#40;0&#41; &#58; 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&#58; size&#40;ip_address&#41; var&#58; ip_address indexes&#58;
FAILED TO PARSE INDEXES&#58;
get_expression_value&#58; size&#58; variable not foubnd&#58; ip_address
Passing int <ip_groups_count> value <0>
input loop begin
expression&#58; size&#40;ip_address&#41; var&#58; ip_address indexes&#58;
FAILED TO PARSE INDEXES&#58;
get_expression_value&#58; size&#58; variable not foubnd&#58; ip_address
from <0> count <0> counter <i>
input loop end
expression&#58; size&#40;quota&#41; var&#58; quota indexes&#58;
FAILED TO PARSE INDEXES&#58;
get_expression_value&#58; size&#58; variable not foubnd&#58; quota
Passing int <quotas_count> value <0>
input loop begin
expression&#58; size&#40;quota&#41; var&#58; quota indexes&#58;
FAILED TO PARSE INDEXES&#58;
get_expression_value&#58; size&#58; variable not foubnd&#58; 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>

Beavis
Сообщения: 205
Зарегистрирован: Вт июн 21, 2005 00:44

Сообщение Beavis »

хыхы
стоило только спросить и сразу увидел ошибку :))
<parameter name="ip_addpess" value="172.20.12.5"/>

Ответить