Посмотрел в логи: там происходит следующее (сборка 5.2.1-006):
Код: Выделить всё
?Debug : May 19 16:30:20 FW@127.0.0.1: Ping reply received
?Debug : May 19 16:30:21 RPCConn[SSL]<jncadmin@62.33.182.141>: URFA ping received, sending reply
?Debug : May 19 16:30:21 RPCConn[SSL]<jncadmin@62.33.182.141>: Call: 0x10100 (rpcf_set_raduis_attr)
?Debug : May 19 16:30:21 RPCConn[SSL]<jncadmin@62.33.182.141>: Real Call: 0x10100 (rpcf_set_raduis_attr)
?Debug : May 19 16:30:21 DBCtx: <138751472> SQL query: DELETE FROM radius_data WHERE owner_id='373' AND owner_type='10000'
?Debug : May 19 16:30:21 DBCtx: <138751472> SQL query: INSERT INTO radius_data(owner_id,owner_type,vendor,attr,value) VALUES('373','10000','14988','9','3132386b2f3132386b')
ERROR : May 19 16:30:21 DBAExistingError: trying to get unexist link 373
?Trace : May 19 16:30:21 trace: Obtained 13 stack frames.
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_Z15print_backtracev+0x1d) [0x830ecc5]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM8DBAErrorC2ERKSsS2_+0x40) [0x81aa28c]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM16DBAExistingErrorC1ESs+0x36) [0x81a867e]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM8DBAccess16get_service_linkEi+0x7e) [0x81ba596]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM8DBAccess20__reread_radius_dataEii+0x36) [0x8217526]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM8DBAccess21__sql_put_radius_dataEPKNS_13radius_data_tEii+0x1f1) [0x8217abd]
?Trace : May 19 16:30:21 trace: /netup/utm5/lib/utm5_core/liburfa-std.so(_ZN3UTM8DBAccess15set_radius_attrEiiPKNS_13radius_data_tE+0x3a) [0xf61944f2]
?Trace : May 19 16:30:21 trace: /netup/utm5/lib/utm5_core/liburfa-std.so(_Z20rpcf_set_radius_attrPv+0xfb) [0xf617cb7f]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM7RPCFuncclEPv+0x20) [0x82bdcd0]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM7RPCConn7processEv+0x98f) [0x82c1fe3]
?Trace : May 19 16:30:21 trace: /netup/utm5/bin/utm5_core(_ZN3UTM17__rpcconn_wrapperEPv+0xd6) [0x82ba7b2]
?Trace : May 19 16:30:21 trace: /lib/libpthread.so.0 [0x4fe3db]
?Trace : May 19 16:30:21 trace: /lib/libc.so.6(clone+0x5e) [0x45826e]
ERROR : May 19 16:30:21 DBAExistingError: [rpcf_set_radius_attr] trying to get unexist link 373
?Debug : May 19 16:30:21 RPCConn[SSL]<jncadmin@62.33.182.141>: Call 0x10100 (rpcf_set_raduis_attr) finished...
?Debug : May 19 16:30:21 RPCConn[SSL]<jncadmin@62.33.182.141>: Stream cleared
Другой вопрос - если в пакет были добавлены атрибуты из услуги, то атрибуты из связки (1024k/1024k) не затирают атрибуты из услуги (262k/262k):
Код: Выделить всё
?Debug : May 19 16:38:23 AuthServer: Calling fill radius attributes for service. Attr storage size <2>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data Vendor:<14988> Attr:<8> Val:<-168579256> Size<9>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data result <0> message <Success>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data verifying packet. fetched val <262k/262k> size:<9>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data Vendor:<14988> Attr:<19> Val:<-168196424> Size<11>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data result <0> message <Success>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data verifying packet. fetched val <ppp-256k-ip> size:<11>
?Debug : May 19 16:38:23 AuthServer: Calling fill radius attributes for slink. Attr storage size <1>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data Vendor:<14988> Attr:<8> Val:<-168176920> Size<11>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data result <0> message <Success>
?Debug : May 19 16:38:23 AuthServer: fill_radius_data verifying packet. fetched val <262k/262k> size:<9>
?Debug : May 19 16:38:23 AuthServer: Calling fill radius attributes for NAS. Attr storage size <0>
Notice: May 19 16:38:23 AuthServer: Login OK <stimunlim> from NAS <127.0.0.1> CLID <192.168.1.1> Calling-station <192.168.1.134>
Цель - организовать "турбо"-кнопку для абонентов путём выставления повышенной скорости через радиус-атрибуты сервисной связки и удаления их позже с помощью urfaclient, а также снятия с баланса некоторой суммы с помощью единоразовой услуги.