renamed commands

This commit is contained in:
Radu Ioan Fericean
2014-04-19 16:06:53 +03:00
parent 0e55acbfdb
commit 1935d41b9d
18 changed files with 19 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetAccount{
name: "get_account",
name: "account",
rpcMethod: "ApierV1.GetAccount",
rpcParams: &apier.AttrGetAccount{Direction: "*out"},
}

View File

@@ -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

View File

@@ -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

View File

@@ -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"},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdAddBalance{
name: "add_balance",
name: "balance_add",
rpcMethod: "ApierV1.AddBalance",
}
commands[c.Name()] = c

View File

@@ -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"},

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetCallCost{
name: "get_callcost",
name: "callcost",
rpcMethod: "ApierV1.GetCallCostLog",
}
commands[c.Name()] = c

View File

@@ -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

View File

@@ -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

View File

@@ -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"},
}

View File

@@ -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

View File

@@ -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"},
}

View File

@@ -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

View File

@@ -20,7 +20,7 @@ package console
func init() {
c := &CmdReloadScheduler{
name: "reload_scheduler",
name: "scheduler_reload",
rpcMethod: "ApierV1.ReloadScheduler",
}
commands[c.Name()] = c

View File

@@ -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