diff --git a/cmd/cgr-tester/cgr-tester.go b/cmd/cgr-tester/cgr-tester.go index 37fdddfdb..4da9cfd7c 100644 --- a/cmd/cgr-tester/cgr-tester.go +++ b/cmd/cgr-tester/cgr-tester.go @@ -30,6 +30,7 @@ import ( "github.com/cgrates/cgrates/config" "github.com/cgrates/cgrates/engine" + "github.com/cgrates/cgrates/utils" ) var ( @@ -52,7 +53,8 @@ var ( accountdb_pass = flag.String("accountdb_passwd", cgrConfig.AccountDBPass, "The AccountingDb user's password.") dbdata_encoding = flag.String("dbdata_encoding", cgrConfig.DBDataEncoding, "The encoding used to store object data in strings.") raterAddress = flag.String("rater_address", "", "Rater address for remote tests. Empty for internal rater.") - tor = flag.String("tor", "call", "The type of record to use in queries.") + tor = flag.String("category", utils.VOICE, "The type of record to use in queries.") + category = flag.String("category", "call", "The Record category to test.") tenant = flag.String("tenant", "cgrates.org", "The type of record to use in queries.") subject = flag.String("subject", "1001", "The rating subject to use in queries.") destination = flag.String("destination", "1002", "The destination to use in queries.") @@ -155,6 +157,7 @@ func main() { DurationIndex: 60 * time.Second, Direction: "*out", TOR: *tor, + Category: *category, Tenant: *tenant, Subject: *subject, Destination: *destination, diff --git a/data/tester/cgr-tester.py b/data/tester/cgr-tester.py index dbb99029d..1d3191a6c 100644 --- a/data/tester/cgr-tester.py +++ b/data/tester/cgr-tester.py @@ -44,7 +44,8 @@ class JSONClient(object): rpc =JSONClient(("127.0.0.1", 2012)) cd = {"Direction":"*out", - "TOR":"call", + "TOR":"*voice", + "Category": "call" "Tenant": "cgrates.org", "Subject": "1001", "Destination": "1002",