Files
cgrates/data/tariffplans/oldtutorial/Actions.csv
ionutboangiu 1f7e0b33a2 Update *alter_sessions action
Will now support two extra parameters: address and codec. For *internal
connections, the birpc.Service object will be retrieved from rpcParamsMap
from utils. Supported codecs: <*gob|*json|*http_jsonrpc> (ingored for
*internal address).

Action does not bother with setting defaults anymore, lets the API
handle them.

Improve action comments.

Add unit tests for the action. UnregisterRpcParams' implementation was
required.

Updated *alter_sessions action tariffplan for radius coa integration test
to include address and codec.

Some birpc clients that are set up in integration tests were still registering
a SessionSv1 object. Updated them to register an AgentV1 object instead.
2024-02-27 16:28:48 +01:00

1.6 KiB

1#ActionsId[0]Action[1]ExtraParameters[2]Filter[3]BalanceId[4]BalanceType[5]Categories[6]DestinationIds[7]RatingSubject[8]SharedGroup[9]ExpiryTime[10]TimingIds[11]Units[12]BalanceWeight[13]BalanceBlocker[14]BalanceDisabled[15]Weight[16]
2TOPUP_RST_10*topup_reset*monetary*any*unlimited1010falsefalse10
3TOPUP_RST_5*topup_reset*monetary*any*unlimited520falsefalse10
4TOPUP_RST_5*topup_reset*voiceDST_1002SPECIAL_1002*unlimited90s20falsefalse10
5TOPUP_120_DST1003*topup_reset*voiceDST_1003*unlimited120s20falsefalse10
6TOPUP_RST_SHARED_5*topup*monetary*anySHARED_A*unlimited510falsefalse10
7SHARED_A_0*topup_reset*monetary*anySHARED_A*unlimited010falsefalse10
8TOPUP_RST_DATA_100*topup_reset*data*any*unlimited10240010falsefalse10
9LOG_WARNING*logfalsefalse10
10DISABLE_AND_LOG*logfalsefalse10
11DISABLE_AND_LOG*disable_accountfalsefalse10
12TOPUP_100SMS_DE_MOBILE*topup*smsDST_DE_MOBILE10010falsefalse10
13#ACT_RAD_COA_ACNT_1001*cgr_rpc{"Address":"localhost:2012","Transport":"*json","Method":"SessionSv1.AlterSessions","Attempts":1,"Async":false,"Params":{"Filters":["*string:~*req.Account:1001"],"Tenant":"cgrates.org","APIOpts":{"*radCoATemplate":"mycoa"},"Event":{"CustomFilter":"custom_filter"}}}20
14ACT_RAD_COA_ACNT_1001*alter_sessionslocalhost:2012;*json;cgrates.org;*string:~*req.Account:1001;1;*radCoATemplate:mycoa;CustomFilter:mycustomvalue