Hello again,
For the APIerSv2.GetCDRs we only have two formats (string as you have shown if ToR is *voice, and in nanoseconds if not *voice).
If you are looking to export the CDRs, you can add (or modify if you already have) a template on your "cdre" module in configs like so:
"cdre": {
"usage_seconds": {
"fields": [
{"path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage{*duration_seconds}",
"mandatory": true},
],
},
},
This way, when you run ApierV2.ExportCdrsToFile, the usage will be exported as a float in seconds, i.e., 1m38s as 98
Thanks.
Arber