This commit is contained in:
jack ning
2025-10-13 00:18:07 +08:00
parent 45875c3a1a
commit b124f2d5b6

View File

@@ -129,71 +129,6 @@ stream {
# Stream-level logging to aid troubleshooting
error_log /var/log/nginx/stream_error.log info;
# SIP UDP passthrough
# upstream freeswitch_sip_udp {
# server 14.103.165.199:5060; # SIP UDP - public IP
# }
# # SIP TCP passthrough
# upstream freeswitch_sip_tcp {
# server 14.103.165.199:5060; # SIP TCP - public IP
# }
# # SIPS (TLS) passthrough on 5061 using ssl_preread
# # Ensure nginx is built with the stream_ssl_preread module.
# upstream freeswitch_sips_tcp {
# server 14.103.165.199:5061; # SIPS TCP - public IP
# }
# # External SIP TCP (e.g., 5080)
# upstream freeswitch_external_tcp {
# server 14.103.165.199:5080; # External SIP TCP - public IP
# }
# # STUN UDP passthrough (recommended to use coturn in production)
# upstream freeswitch_stun_udp {
# server 14.103.165.199:3478; # STUN - public IP
# }
# # SIP UDP
# server {
# listen 5060 udp;
# proxy_pass freeswitch_sip_udp;
# proxy_timeout 3600s;
# proxy_responses 1;
# proxy_bind $remote_addr transparent;
# }
# # SIP TCP
# server {
# listen 5060;
# proxy_pass freeswitch_sip_tcp;
# proxy_timeout 3600s;
# proxy_bind $remote_addr transparent;
# }
# # SIPS TCP (TLS passthrough)
# server {
# listen 5061;
# proxy_pass freeswitch_sips_tcp;
# ssl_preread on;
# proxy_timeout 3600s;
# }
# # External SIP TCP (e.g., 5080)
# server {
# listen 5080;
# proxy_pass freeswitch_external_tcp;
# proxy_timeout 3600s;
# }
# # STUN UDP
# server {
# listen 3478 udp;
# proxy_pass freeswitch_stun_udp;
# proxy_timeout 60s;
# }
# IMPORTANT: Do NOT attempt to proxy RTP via nginx stream.
# RTP uses a wide port range and should be exposed directly to FreeSWITCH
# or handled via a TURN server (e.g., coturn). Remove any single-port RTP proxy.