Skip to content

Configuration File

A YAML file, passed with --config. Unknown keys are rejected. Changes take effect on restart. The SMSCs, the SIP trunks and the retention are in the database, and set with the UI or the API.

Parameters

Every key of the configuration file.

  • element_id (string, optional): The domain name of this PSAP, such as psap.example.org. It ends the ID of each incident. Default: the host name, if fully qualified.
  • agency_id (string, optional): The domain name of the agency that runs this PSAP, such as psap.example.org. It identifies the agency and its call takers in the incident data shared with other agencies. Default: element_id.
  • logging (object, optional): The logging configuration.
    • level (string, optional): The log level: debug, info, warn, or error. Default info.
  • db (object): The database configuration.
    • path (string): The path to the SQLite database file.
  • api (object, optional): The HTTP API and UI.
    • address (string, optional): The IP address to listen on. Default 0.0.0.0.
    • port (int, optional): The TCP port to listen on. Default 5040.
    • tls (object, optional): Serve over HTTPS, TLS 1.2 or later. Default: plain HTTP.
      • cert (string): The path to the PEM certificate chain, the server's certificate first.
      • key (string): The path to the PEM private key.
  • sip (object, optional): Receive emergency calls over SIP. Default: no SIP.
    • name (string): A network interface. Ella PSAP listens on its addresses, read at startup. Set name or addresses, not both.
    • addresses (list of strings): The IP addresses to listen on, each over UDP and TCP. One or more, no wildcard. The first is the address in Contact.
    • port (int, optional): The UDP and TCP port. Default 5060.
    • tls (object, optional): Also listen over TLS. Default: no TLS.
      • port (int, optional): The TLS port. Default 5061. Differs from port.
      • cert (string): The path to the PEM certificate chain.
      • key (string): The path to the PEM private key.
      • ca (string, optional): The path to PEM certificates that sign the clients' certificates. When set, every client presents a certificate.
  • media (object, optional): The audio of answered calls. Used only with sip.
    • rtp (object, optional): The RTP and RTCP ports for the callers' audio, on the SIP addresses: an even RTP port and the RTCP port above it, per call.
      • min_port (int, optional): The lowest port, even, from 1024. Default 20000.
      • max_port (int, optional): The highest port, above min_port. Default 20999.
    • webrtc (object, optional): The call takers' audio, from their browsers.
      • port (int, optional): The UDP port, on every address, outside the rtp range. Default 5041.
      • addresses (list of strings, optional): The IP addresses that browsers reach Ella PSAP at, such as the public address in front of a NAT. Default: the addresses of the host.
  • telemetry (object, optional): The traces.
    • enabled (boolean, optional): Export traces. Default false.
    • otlp_endpoint (string): The host:port of an OTLP/gRPC collector, over plain gRPC. Required when enabled is true.
  • map (object, optional): The tile server of the maps. Default: the public OpenStreetMap server.
    • tile_url (string, optional): A tile URL template with {z}, {x} and {y}, such as https://tiles.example.org/{z}/{x}/{y}.png?key=….
    • attribution (string): The text shown on the maps, as the provider's licence requires. HTML links allowed. Required with tile_url.
    • max_zoom (int, optional): The highest zoom level the server provides, 1 to 24. Default 19.

Example

A configuration file with every key set.

element_id: psap.example.org
logging:
  level: info
db:
  path: /var/lib/psap/psap.db
api:
  address: 0.0.0.0
  port: 5040
  tls:
    cert: /etc/psap/api.pem
    key: /etc/psap/api.key
sip:
  addresses:
    - 10.90.3.10
  port: 5060
  tls:
    port: 5061
    cert: /etc/psap/sip.pem
    key: /etc/psap/sip.key
    ca: /etc/psap/ims-ca.pem
media:
  rtp:
    min_port: 20000
    max_port: 20999
  webrtc:
    port: 5041
    addresses:
      - 203.0.113.10
telemetry:
  enabled: true
  otlp_endpoint: localhost:4317