mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
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:
committed by
Dan Christian Bogos
parent
61bcf48678
commit
d8ad760dbb
@@ -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
|
||||
|
||||
@@ -648,6 +648,7 @@ const (
|
||||
MetaDivide = "*divide"
|
||||
MetaUrl = "*url"
|
||||
MetaXml = "*xml"
|
||||
MetaOReq = "*oreq"
|
||||
MetaReq = "*req"
|
||||
MetaAsm = "*asm"
|
||||
MetaVars = "*vars"
|
||||
|
||||
Reference in New Issue
Block a user