mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
30 lines
987 B
JSON
30 lines
987 B
JSON
{
|
|
|
|
"dns_agent": {
|
|
"request_processors": [
|
|
{
|
|
"id": "NAPTRSuppliers",
|
|
"filters": ["*string:~*vars.QueryType:NAPTR", "*string:~*vars.E164Address:4986517174964"],
|
|
"flags": ["*auth", "*suppliers"],
|
|
"request_fields":[
|
|
{"tag": "TOR", "field_id": "Account", "type": "*constant", "value": "1001"}, // so we can match the supplier profile
|
|
],
|
|
"reply_fields":[
|
|
{"tag": "NAPTROrder", "field_id": "Order",
|
|
"type": "*constant", "value": "100"},
|
|
{"tag": "NAPTRPreference", "field_id": "Preference",
|
|
"type": "*constant", "value": "10"},
|
|
{"tag": "NAPTRFlags", "field_id": "Flags",
|
|
"type": "*constant", "value": "U"},
|
|
{"tag": "NAPTRService", "field_id": "Service",
|
|
"type": "*constant", "value": "E2U+SIP"},
|
|
{"tag": "NAPTRRegexp", "field_id": "Regexp",
|
|
"type": "*constant", "value": "^.*$"},
|
|
{"tag": "NAPTRReplacement", "field_id": "Replacement",
|
|
"type": "*constant", "value": "sip:\\1@172.16.1.10."},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
|
|
} |