Skip to main content
Version: 1.x.x

Gateways

Use the Gateway resource to register with a SIP Gateways or SBCs and send or receive calls from the PSTN.

The Gateways configuration can be provided using the file config/gateways.yml. The file is located at the root of your Routr installation, or as defined in the environment variable CONFIG_FILE.

If using Redis this configuration gets stored in the database.

For static IP authentication be sure to properly configure the spec.externAddr and spec.localnets in config.yml.

Gateway Resource

PropertyDescriptionRequired
apiVersionIndicates the version of the resource (Not yet implemented)Yes
kindDefines the type of resourceYes
metadata.nameFriendly name for the SIP deviceYes
metadata.refReference to this resourceNo
spec.sendRegisterSend SIP REGISTER package to gateway host. Defaults to falseNo
spec.credentials.usernameGateway username. No required for static IP authenticationNo
spec.credentials.secretGateway secret. No required for static IP authenticationNo
spec.hostGateway hostYes
spec.transportTransport protocolYes
spec.expiresRequested lifespan of the registration in seconds. Defaults to 600No
spec.registries.[*]Additional registries for ingress callsNo

Example of Gateway in Registration Mode

- apiVersion: v1beta1
kind: Gateway
metadata:
name: Provider, Inc
ref: GW0001
spec:
host: sip.provider.com
transport: tcp
credentials:
username: 'user'
secret: changeit

Example if Gateway using Static Mode

- apiVersion: v1beta1
kind: Gateway
metadata:
name: Provider 2, Inc
ref: GW0002
spec:
host: sip2.provider.com
port: 5080
transport: tcp