Skip to main content
Version: 1.x.x

Peers

Like Agents, Peers represent SIP endpoints such as Media Servers.

Unlike Agents, Peers aren't bound by a Domain.

The Peers configuration can be provided using the file config/peers.yml located at the root of your Routr installation.

If using Redis this configuration gets stored in the database.

Peer Resource

PropertyDescriptionRequired
apiVersionIndicates the version of the resource (Not yet implemented)Yes
kindDefines the type of resourceYes
metadata.nameFriendly name for the SIP deviceYes
spec.credentials.usernamePeer's credential usernameYes
spec.credentials.secretPeer's credential secretYes
spec.deviceWhen set it is used by the location serviceNo
spec.contactAddrWhen set advertises this as the contactURINo

Example

- apiVersion: v1beta1
kind: Peer
metadata:
name: Asterisk (Media Server)
spec:
credentials:
username: ast
secret: 'astsecret'
device: astserver # If is not define the IP address will be used
contactAddr: '192.168.1.2:6060'

This peer can be reached using the AOR: ast@astserver.