Files
cgrates/data/conf/samples/dnsagent_mongo/attributes.json

31 lines
1012 B
JSON

{
"dns_agent": {
"request_processors": [
{
"id": "NAPTRAttributes",
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
"flags": ["*authorize", "*attributes","*log"],
"request_fields":[
{"tag": "E164Address", "path": "*cgreq.E164Address",
"type": "*constant", "value": "4986517174964"},
{"tag": "NAPTRAddress", "path": "*cgreq.NAPTRAddress",
"type": "*constant", "value": "*attributes"}
],
"reply_fields":[
{"tag": "NAPTROrder", "path": "*rep.Order",
"type": "*constant", "value": "100"},
{"tag": "NAPTRPreference", "path": "*rep.Preference",
"type": "*constant", "value": "10"},
{"tag": "NAPTRFlags", "path": "*rep.Flags",
"type": "*constant", "value": "U"},
{"tag": "NAPTRService", "path": "*rep.Service",
"type": "*constant", "value": "E2U+SIP"},
{"tag": "NAPTRRegex", "path": "*rep.Regexp",
"type": "*variable", "value": "~*cgrep.Attributes.NAPTRAddress"},
],
},
],
},
}