mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
KamailioAgent with s as Usage
This commit is contained in:
@@ -115,6 +115,9 @@ func (kev KamEvent) MissingParameter() bool {
|
||||
func (kev KamEvent) AsMapStringInterface() (mp map[string]interface{}) {
|
||||
mp = make(map[string]interface{})
|
||||
for k, v := range kev {
|
||||
if k == utils.Usage {
|
||||
k += "s" // mark the Usage as seconds
|
||||
}
|
||||
if !utils.IsSliceMember(kamReservedFields, k) { // reserved attributes not getting into event
|
||||
mp[k] = v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user