All are working fine that EES is exporting all fields as below except this as I need to export the value of the used balance(to let the subscribers to get their remaining balance after each call, so I tried many criteries to get the value as below but I didn't get at all the "Value" part nor even anything pointing to it :
"ees": {
"enabled": true,
"attributes_conns":["*internal"],
"exporters": [
{
"id": "sms_balance_notification",
"type": "*http_post",
"synchronous": true,
"field_separator": ",",
"flags": ["*cdrs","*log"],
//"flags": ["*terminate"],
// "flags": ["*attributes"],
"attempts": 1,
"fields": [
{"tag": "from","path": "*exp.from","type": "*variable","value": "smsc" // Sender number (fixed)},
{ "tag": "to","path": "*exp.to", "type": "*variable","value": "~*req.Account" // Recipient number (dynamic, from the CDR)}, {"tag": "Usage", "path": "*exp.Usage", "type": "*variable", "value": "~*req.Usage"},
{"tag": "Destination", "path": "*exp.Destination", "type": "*variable", "value": "~*req.Destination"},
{"tag": "Cost", "path": "*exp.Cost", "type": "*variable", "value": "~*req.Cost{*round:2}","width": 9, "padding": "*zeroleft"},
{"tag": "Value","path": "*exp.Value","type": "*variable","value": "~*req.CostDetails.AccountSummary.BalanceSummaries[0].Value"}
],
"opts": {
"httpParameters": {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": {
"from": "~*exp.from",
"Cost": "~*exp.Cost",
"Usage": "~*exp.Usage",
"Value":"*exp.Value",
"Destination":"*exp.Destination"
}
}
}
},
Attached also the ngrep..