mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
29 lines
1.0 KiB
JSON
29 lines
1.0 KiB
JSON
{
|
|
"dns_agent": {
|
|
"request_processors": [
|
|
{
|
|
"id": "NAPTRAttributes",
|
|
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.QueryName{*e164}: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.Answer.Order",
|
|
"type": "*constant", "value": "100"},
|
|
{"tag": "NAPTRPreference", "path": "*rep.Answer.Preference",
|
|
"type": "*constant", "value": "10"},
|
|
{"tag": "NAPTRFlags", "path": "*rep.Answer.Flags",
|
|
"type": "*constant", "value": "U"},
|
|
{"tag": "NAPTRService", "path": "*rep.Answer.Service",
|
|
"type": "*constant", "value": "E2U+SIP"},
|
|
{"tag": "NAPTRRegex", "path": "*rep.Answer.Regexp",
|
|
"type": "*variable", "value": "~*cgrep.Attributes.NAPTRAddress"},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
} |