mattia
8e221dfd03
res_pjsip: Add per-endpoint RTP port range configuration
...
Add rtp_port_start and rtp_port_end options to PJSIP endpoint
configuration, allowing each endpoint to use a dedicated RTP port
range instead of the global rtp.conf setting.
This is useful for scenarios where different endpoints need isolated
port ranges, such as firewall rules per trunk, multi-tenant systems,
or network QoS policies tied to port ranges.
The implementation adds ast_rtp_instance_new_with_port_range() to the
RTP engine API, which sets the port range on the instance before the
engine allocates the transport. The default RTP engine
(res_rtp_asterisk) checks for per-instance overrides in
rtp_allocate_transport() and falls back to the global range when
none is set.
Both options must be set together, with values >= 1024 and
rtp_port_end > rtp_port_start. Setting both to 0 (the default)
preserves existing behavior.
Resolves: https://github.com/asterisk/asterisk-feature-requests/issues/71
UserNote: PJSIP endpoints now support rtp_port_start and
rtp_port_end options to configure a dedicated RTP port range per
endpoint, overriding the global rtp.conf setting.
UpgradeNote: An alembic database migration has been added to add
the rtp_port_start and rtp_port_end columns to the ps_endpoints
table. Run "alembic upgrade head" to apply the schema change.
DeveloperNote: New public API: ast_rtp_instance_new_with_port_range()
creates an RTP instance with a per-instance port range.
ast_rtp_instance_get_port_start() and ast_rtp_instance_get_port_end()
allow RTP engines to query the override. Third-party RTP engines can
use these getters to support per-instance port ranges.
2026-04-28 17:45:53 +00:00
..
2023-01-13 08:32:33 -06:00
2025-09-16 17:21:22 +00:00
2021-11-16 05:59:44 -06:00
2024-10-10 15:34:31 +00:00
2021-12-02 10:26:08 -06:00
2025-01-16 08:13:21 -07:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2024-10-01 15:01:35 +00:00
2025-06-02 16:35:34 +00:00
2023-09-14 17:58:24 +00:00
2024-02-28 18:39:03 +00:00
2025-01-02 14:52:38 +00:00
2021-12-02 15:02:09 -06:00
2025-03-31 20:33:14 +00:00
2021-12-02 15:02:09 -06:00
2026-04-07 17:18:37 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 09:20:52 -06:00
2023-01-13 08:32:33 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-02-20 18:34:33 +00:00
2021-12-02 15:02:09 -06:00
2021-12-03 10:38:39 -06:00
2024-04-22 12:02:44 +00:00
2021-12-02 10:26:08 -06:00
2025-12-01 14:05:54 +00:00
2025-08-06 15:37:52 +00:00
2026-03-02 16:43:25 +00:00
2025-05-07 16:47:06 +00:00
2026-03-17 16:15:38 +00:00
2025-01-06 14:56:41 +00:00
2021-12-02 15:02:09 -06:00
2022-11-08 09:15:55 -06:00
2026-04-28 13:17:53 +00:00
2025-09-22 17:39:18 +00:00
2025-07-30 15:38:31 +00:00
2021-12-13 08:57:26 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-31 11:23:11 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 10:37:38 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 08:17:56 -06:00
2021-12-02 15:02:09 -06:00
2020-03-13 09:58:59 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2020-03-13 09:58:59 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2023-05-03 09:37:57 -06:00
2026-03-03 22:07:19 +00:00
2023-04-10 14:38:51 -05:00
2026-02-17 13:31:25 +00:00
2021-11-18 08:17:56 -06:00
2024-08-12 15:21:35 +00:00
2021-12-02 15:02:09 -06:00
2023-01-10 14:07:44 -06:00
2023-01-13 08:32:33 -06:00
2024-06-05 18:09:58 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-01-04 05:00:58 -06:00
2021-12-02 15:02:09 -06:00
2025-12-09 17:04:06 +00:00
2021-11-18 16:13:18 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2026-01-05 14:49:21 +00:00
2025-04-21 13:29:33 +00:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2024-04-29 13:24:07 +00:00
2025-04-02 12:16:41 +00:00
2021-11-18 08:17:56 -06:00
2025-05-03 16:22:25 +00:00
2021-12-02 15:02:09 -06:00
2025-09-22 17:39:18 +00:00
2026-03-03 18:55:46 +00:00
2021-12-02 15:02:09 -06:00
2025-04-21 13:29:33 +00:00
2021-12-02 15:02:09 -06:00
2019-11-18 08:30:45 -06:00
2021-11-16 05:59:44 -06:00
2024-04-30 14:14:17 +00:00
2021-12-02 15:02:09 -06:00
2025-04-10 12:36:12 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-07-30 16:04:01 +00:00
2022-12-08 08:07:12 -06:00
2020-12-09 11:17:27 -06:00
2026-03-03 18:55:46 +00:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2021-11-16 05:59:44 -06:00
2025-09-22 17:39:18 +00:00
2023-01-31 11:23:11 -06:00
2023-01-31 11:23:11 -06:00
2025-10-17 13:05:26 +00:00
2026-03-02 16:43:25 +00:00
2019-12-13 14:24:10 -06:00
2026-01-05 12:45:05 +00:00
2022-12-09 08:59:04 -06:00
2021-12-03 10:38:39 -06:00
2021-11-19 02:50:36 -06:00
2023-12-20 14:02:33 +00:00
2021-12-03 10:38:39 -06:00
2021-11-18 12:14:54 -06:00
2023-05-18 11:41:38 -06:00
2025-12-30 15:09:29 +00:00
2021-11-18 12:14:54 -06:00
2026-04-16 18:25:33 +00:00
2026-04-28 17:45:53 +00:00
2021-12-03 10:38:39 -06:00
2025-02-11 23:33:19 +00:00
2026-04-28 17:45:53 +00:00
2021-11-16 05:59:44 -06:00
2022-01-21 10:06:57 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-09-16 17:21:22 +00:00
2025-09-16 17:21:22 +00:00
2022-01-19 09:44:24 -06:00
2019-11-18 08:30:45 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-08-27 16:56:13 +00:00
2022-04-26 14:26:48 -05:00
2021-11-18 08:17:56 -06:00
2026-04-22 18:04:59 +00:00
2021-12-13 08:57:26 -06:00
2021-12-02 10:37:38 -06:00
2021-12-02 10:37:38 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2025-08-18 16:29:45 +00:00
2025-02-20 18:34:33 +00:00
2021-12-13 08:57:26 -06:00
2025-10-20 13:19:18 +00:00
2021-12-13 08:57:26 -06:00
2025-10-13 15:34:12 +00:00
2025-10-13 15:34:12 +00:00
2019-06-28 11:41:15 -05:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2025-10-13 15:34:12 +00:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2022-05-09 08:21:45 -05:00
2025-01-06 19:08:23 +00:00
2021-11-18 08:17:56 -06:00
2021-11-18 08:17:56 -06:00
2025-12-16 17:03:43 +00:00
2025-12-04 16:13:03 +00:00
2025-04-21 13:29:33 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 10:26:08 -06:00
2025-01-02 14:52:18 +00:00
2025-12-04 16:13:03 +00:00
2021-12-02 15:02:09 -06:00
2023-01-31 11:23:11 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 10:26:08 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2023-03-01 09:50:02 -06:00
2026-02-26 15:51:02 +00:00
2025-06-02 16:35:34 +00:00
2025-08-20 15:33:37 +00:00
2023-01-31 11:23:11 -06:00
2026-03-03 18:55:46 +00:00