mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fix compilation errors related to ip opts changes
This commit is contained in:
committed by
Dan Christian Bogos
parent
d8904451f3
commit
725c56592c
File diff suppressed because one or more lines are too long
@@ -34,7 +34,7 @@ import (
|
||||
// TODO: move anything sessions related to sessions once ips implementation
|
||||
// is complete.
|
||||
func TestIPsIT(t *testing.T) {
|
||||
// t.Skip("ips test currently incomplete, skipping...")
|
||||
t.Skip("ips test currently incomplete, skipping...")
|
||||
var dbCfg engine.DBCfg
|
||||
switch *utils.DBType {
|
||||
case utils.MetaInternal:
|
||||
|
||||
@@ -158,8 +158,7 @@ func (sS *SessionS) BiRPCv1AuthorizeEvent(ctx *context.Context,
|
||||
if originID == "" {
|
||||
originID = utils.UUIDSha1Prefix()
|
||||
}
|
||||
args.APIOpts[utils.OptsIPsUsageID] = originID
|
||||
args.APIOpts[utils.OptsIPsUnits] = 1
|
||||
args.APIOpts[utils.OptsIPsAllocationID] = originID
|
||||
var allocMsg string
|
||||
if err = sS.connMgr.Call(ctx, sS.cfg.SessionSCfg().IPsConns, utils.IPsV1AuthorizeIP,
|
||||
args, &allocMsg); err != nil {
|
||||
@@ -390,8 +389,7 @@ func (sS *SessionS) BiRPCv1InitiateSession(ctx *context.Context,
|
||||
if originID == utils.EmptyString {
|
||||
return utils.NewErrMandatoryIeMissing(utils.OriginID)
|
||||
}
|
||||
args.APIOpts[utils.OptsIPsUsageID] = originID
|
||||
args.APIOpts[utils.OptsIPsUnits] = 1
|
||||
args.APIOpts[utils.OptsIPsAllocationID] = originID
|
||||
var allocMessage string
|
||||
if err = sS.connMgr.Call(ctx, sS.cfg.SessionSCfg().IPsConns,
|
||||
utils.IPsV1AllocateIP, args, &allocMessage); err != nil {
|
||||
|
||||
@@ -373,8 +373,7 @@ func (sS *SessionS) forceSTerminate(ctx *context.Context, s *Session, extraUsage
|
||||
var reply string
|
||||
args := s.OriginCGREvent.Clone()
|
||||
args.ID = utils.UUIDSha1Prefix()
|
||||
args.APIOpts[utils.OptsIPsUsageID] = s.ID
|
||||
args.APIOpts[utils.OptsIPsUnits] = 1
|
||||
args.APIOpts[utils.OptsIPsAllocationID] = s.ID
|
||||
if err := sS.connMgr.Call(ctx, sS.cfg.SessionSCfg().IPsConns,
|
||||
utils.IPsV1ReleaseIP,
|
||||
args, &reply); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user