Update both ReAuthorize API signatures

The one from sessions takes an additional event alongside the
SessionFilter, while the one from agents will accept a CGREvent
instead of a simple originID string

The additional event sent to SessionSv1ReAuthorize will be merged
with the EventStart event from the matched session and can be used
when building server initiated requests from the *req map. The
initial packet which was initially inside *req, will be moved to
the *oreq ExtraDP (stands for original request).
This commit is contained in:
ionutboangiu
2024-02-13 11:04:06 -05:00
committed by Dan Christian Bogos
parent 61bcf48678
commit d8ad760dbb
15 changed files with 112 additions and 75 deletions

View File

@@ -1457,6 +1457,11 @@ type SessionFilter struct {
APIOpts map[string]any
}
type SessionFilterWithEvent struct {
*SessionFilter
Event map[string]any
}
type RatingPlanCostArg struct {
RatingPlanIDs []string
Destination string

View File

@@ -648,6 +648,7 @@ const (
MetaDivide = "*divide"
MetaUrl = "*url"
MetaXml = "*xml"
MetaOReq = "*oreq"
MetaReq = "*req"
MetaAsm = "*asm"
MetaVars = "*vars"