mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
renamed commands
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetAccount{
|
||||
name: "get_account",
|
||||
name: "account",
|
||||
rpcMethod: "ApierV1.GetAccount",
|
||||
rpcParams: &apier.AttrGetAccount{Direction: "*out"},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/apier"
|
||||
|
||||
func init() {
|
||||
c := &CmdAddAccount{
|
||||
name: "add_account",
|
||||
name: "account_add",
|
||||
rpcMethod: "ApierV1.SetAccount",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
f/*
|
||||
Rating system designed to be used in VoIP Carriers World
|
||||
Copyright (C) 2013 ITsysCOM
|
||||
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdSetAccountActions{
|
||||
name: "set_accountactions",
|
||||
name: "accountactions_set",
|
||||
rpcMethod: "ApierV1.SetAccountActions",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/apier"
|
||||
|
||||
func init() {
|
||||
c := &CmdExecuteAction{
|
||||
name: "execute_action",
|
||||
name: "action_execute",
|
||||
rpcMethod: "ApierV1.ExecuteAction",
|
||||
rpcParams: &apier.AttrExecuteAction{Direction: "*out"},
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdAddBalance{
|
||||
name: "add_balance",
|
||||
name: "balance_add",
|
||||
rpcMethod: "ApierV1.AddBalance",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/engine"
|
||||
|
||||
func init() {
|
||||
c := &CmdDebitBalance{
|
||||
name: "debit_balance",
|
||||
name: "balance_debit",
|
||||
rpcMethod: "Responder.Debit",
|
||||
rpcParams: &engine.CallDescriptor{Direction: "*out"},
|
||||
clientArgs: []string{"Direction", "TOR", "Tenant", "Subject", "Account", "Destination", "TimeStart", "TimeEnd", "CallDuration", "FallbackSubject"},
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdGetCacheAge{
|
||||
name: "get_cache_age",
|
||||
name: "cache_age",
|
||||
rpcMethod: "ApierV1.GetCachedItemAge",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdReloadCache{
|
||||
name: "reload_cache",
|
||||
name: "cache_reload",
|
||||
rpcMethod: "ApierV1.ReloadCache",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdGetCacheStats{
|
||||
name: "get_cache_stats",
|
||||
name: "cache_stats",
|
||||
rpcMethod: "ApierV1.GetCacheStats",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
|
||||
func init() {
|
||||
c := &CmdGetCallCost{
|
||||
name: "get_callcost",
|
||||
name: "callcost",
|
||||
rpcMethod: "ApierV1.GetCallCostLog",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdExportCdrs{
|
||||
name: "export_cdrs",
|
||||
name: "cdrs_export",
|
||||
rpcMethod: "ApierV1.ExportCdrsToFile",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemCdrs{
|
||||
name: "rem_cdrs",
|
||||
name: "cdrs_rem",
|
||||
rpcMethod: "ApierV1.RemCdrs",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/engine"
|
||||
|
||||
func init() {
|
||||
c := &CmdGetCost{
|
||||
name: "get_cost",
|
||||
name: "cost",
|
||||
rpcMethod: "Responder.GetCost",
|
||||
clientArgs: []string{"Direction", "TOR", "Tenant", "Subject", "Account", "Destination", "TimeStart", "TimeEnd", "CallDuration", "FallbackSubject"},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/engine"
|
||||
|
||||
func init() {
|
||||
c := &CmdGetDestination{
|
||||
name: "get_destination",
|
||||
name: "destination",
|
||||
rpcMethod: "ApierV1.GetDestination",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/engine"
|
||||
|
||||
func init() {
|
||||
c := &CmdGetMaxDuration{
|
||||
name: "get_maxduration",
|
||||
name: "maxduration",
|
||||
rpcMethod: "Responder.GetMaxSessionTime",
|
||||
clientArgs: []string{"Direction", "TOR", "Tenant", "Subject", "Account", "Destination", "TimeStart", "TimeEnd", "CallDuration", "FallbackSubject"},
|
||||
}
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdSetRatingProfile{
|
||||
name: "set_ratingprofilet",
|
||||
name: "ratingprofile_set",
|
||||
rpcMethod: "ApierV1.SetRatingProfile",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -20,7 +20,7 @@ package console
|
||||
|
||||
func init() {
|
||||
c := &CmdReloadScheduler{
|
||||
name: "reload_scheduler",
|
||||
name: "scheduler_reload",
|
||||
rpcMethod: "ApierV1.ReloadScheduler",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/apier"
|
||||
|
||||
func init() {
|
||||
c := &CmdAddTriggeredAction{
|
||||
name: "add_triggeredaction",
|
||||
name: "triggeredaction_add",
|
||||
rpcMethod: "ApierV1.AddTriggeredAction",
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
Reference in New Issue
Block a user