added TP apis for aliases, users and lcr rules

fixes #154, fixes #155, fixes #156
This commit is contained in:
Radu Ioan Fericean
2015-08-28 17:18:52 +03:00
parent a8829de649
commit ffc30e43ed
7 changed files with 175 additions and 68 deletions

View File

@@ -321,6 +321,35 @@ type TPLcrRule struct {
Weight float64
}
type TPAliases struct {
TPid string
Direction string
Tenant string
Category string
Account string
Subject string
Group string
Values []*TPAliasValue
}
type TPAliasValue struct {
DestinationId string
Alias string
Weight float64
}
type TPUsers struct {
TPid string
Tenant string
UserName string
Profile []*TPUserProfile
}
type TPUserProfile struct {
AttrName string
AttrValue string
}
type TPCdrStats struct {
TPid string
CdrStatsId string
@@ -519,24 +548,6 @@ type AttrGetAccounts struct {
Limit int // Limit number of items retrieved
}
type AttrSetTPAlias struct {
TPid string
Direction string
Tenant string
Category string
Account string
Subject string
Group string
}
type AttrSetTPUser struct {
TPid string
Tenant string
UserName string
AttributeName string
AttributeValue string
}
// Data used to do remote cache reloads via api
type ApiReloadCache struct {
DestinationIds []string