Files
cgrates/data/conf/samples/dnsagent/suppliers.json
2019-04-29 12:30:51 +02:00

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."},
],
},
],
},
}