KamailioAgent with s as Usage

This commit is contained in:
DanB
2018-02-09 18:58:01 +01:00
parent 6cdf44788e
commit 4b50e29337

View File

@@ -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
}