Ports used by the system
Erlang
Used to determine the port for subsequent connection of one node to another. Between all servers. Within a site and between sites. 4369 constant, TCP.
Port range that nodes can use to interact with each other.
-
srvshell — 9300 - 9309, TCP. Configured in the server startup script.
-
role nodes — 9310 - 9399, TCP. Configured in the configuration (nodesportrange parameter).
Megaco
Between mg and mgc. Only within a site.
Configured in the configuration in role options. Each role instance on one server has its own port.
TCP.
Standard values: mgc — 2954, mg — 2944 (for mg — set in the config but not used).
Http, Websocket
Used in webserver roles.
Configured in the configuration in role options.
TCP.
By default: http — 80, https — 443. For receiving requests over http and websocket.
SIP
Between all SIP roles. Between b2b servers and any other sip roles on all sites, as well as between esg and providers (external PBXs) and between gate and corporate subscribers.
Configured in the configuration in role options.
Values from standard configurations:
-
5060, 5061, 5063 — sg role.
-
5060, 5061, 5063 — redirect role.
-
5080, 5081 — esg role.
-
5085 — conf role.
-
5090 — b2b role.
-
5095 — ivr role.
-
5098 — prompt role.
It is recommended to reserve the range 5060-5099 for SIP signaling needs.
Between servers — TCP.
Externally depends on external device settings: TCP, UDP, TLS
RTP
Between mg, between mg and uplinks (providers or external PBXs), between mg and internal subscriber devices.
UDP.
By default: 10000-20000.
Configured in the configuration in role options.
All instances on one server must have non-overlapping ranges.
For a rough calculation of the required amount: one conversation uses 4 ports from the range. IVR adds 2 more. Each conference participant adds 2 more. A border gateway, if used, adds 4 more. Video multiplies by two. And there must be a reserve — the peak count is multiplied by two. If a server fails, the entire load from its media gateways is applied to the remaining servers.
Database
Postgresql
Between domaincenter and postgresql, between dms and postgresql.
TCP.
By default: 5432.
Configured in the configuration in domaincenter role options and optionally dms. It can also be configured when creating a storage entity with type postgresql for dms role needs.
Additionally, script machines can use external DB connections.