Skip to main content
Version: 1.x.x

Domains

Domains group Agents together. They help isolate groups and allow the creation of rule for incoming and outgoing calling. The domains configuration can be provided using the file config/domains.yml located at the root of your Routr installation.

If using Redis this configuration gets stored in the database.

Domain Resource

PropertyDescriptionRequired
apiVersionIndicates the version of the resource (Not yet implemented)Yes
kindDefines the type of resourceYes
metadata.nameFriendly name for the SIP domainYes
spec.context.domainUriDomain URI. FQDN is recommendedYes
spec.context.egressPolicy.ruleRegular expression indicating when a call will be routed via spec.context.egressPolicy.numberRefNo
spec.context.egressPolicy.numberRefReference to the Number that will route the callNo
spec.context.accessControlList.allow[*]Traffic allow for Network in listNo
spec.context.accessControlList.deny[*]Traffic disabled for Network in listNo

ACL Rules may be in CIDR, IP/Mask, or single IP format. Example of rules are:

  • 0.0.0.0/1 # all
  • 192.168.1.0/255.255.255.0
  • 192.168.0.1/31

Example

- apiVersion: v1beta1
kind: Domain
metadata:
name: Local Server
spec:
context:
domainUri: sip.local
egressPolicy:
rule: .*
numberRef: Number0001
accessControlList:
deny: [0.0.0.0/1] # Deny all
allow: [192.168.0.1/31]