Added new api for exporter -ArchiveEventsAsReply + test

This commit is contained in:
porosnicuadrian
2021-11-26 17:46:40 +02:00
committed by Dan Christian Bogos
parent 9f63cf2b01
commit 2e6e553f3f
15 changed files with 319 additions and 49 deletions

View File

@@ -609,6 +609,7 @@ func TestNewAttrReloadCacheWithOptsFromMap(t *testing.T) {
mp[k] = []string{MetaAny}
}
}
exp := NewAttrReloadCacheWithOpts()
rply := NewAttrReloadCacheWithOptsFromMap(mp, "", nil)
if !reflect.DeepEqual(exp, rply) {
@@ -618,5 +619,4 @@ func TestNewAttrReloadCacheWithOptsFromMap(t *testing.T) {
if !reflect.DeepEqual(mp, rplyM) {
t.Errorf("Expected %+v \n, received %+v", ToJSON(mp), ToJSON(rplyM))
}
}

View File

@@ -565,6 +565,7 @@ const (
MetaEventCost = "*event_cost"
MetaPositiveExports = "*positive_exports"
MetaNegativeExports = "*negative_exports"
MetaBuffer = "*buffer"
MetaRoutesEventCost = "*routesEventCost"
Freeswitch = "freeswitch"
Kamailio = "kamailio"
@@ -772,6 +773,7 @@ const (
MetaCdrLog = "*cdrLog"
MetaCDR = "*cdr"
MetaExporterIDs = "*exporterIDs"
MetaExporterID = "*exporterID"
MetaAsync = "*async"
MetaUsage = "*usage"
MetaStartTime = "*startTime"
@@ -1498,9 +1500,10 @@ const (
// EEs
const (
EeSv1 = "EeSv1"
EeSv1Ping = "EeSv1.Ping"
EeSv1ProcessEvent = "EeSv1.ProcessEvent"
EeSv1 = "EeSv1"
EeSv1Ping = "EeSv1.Ping"
EeSv1ProcessEvent = "EeSv1.ProcessEvent"
EeSv1ArchiveEventsAsReply = "EeSv1.ArchiveEventsAsReply"
)
// ActionProfile APIs