[Freeswitch-users] nginx and freeswitch - VIA issue

Kakiman Expert jolexpert at gmail.com
Tue Sep 20 12:20:06 UTC 2022


hello

I am trying to proxy all websocket requests though a nginx server in order
to have wss -> nginx --> ws -> fs

FS is listening on "127.0.0.01:5075" for ws  and so nginx is configured to
proxy-pass to "127.0.0.1:5075"

when trying request from brower, I see a REGISTER coming to the freeSWITCH,
but the VIA header seems invalid :

nta.c:3146 agent_check_request_via() nta: Via check: invalid transport
"SIP/2.0/WSS"

do you know how to do to have correct VIA ?

is there anything to deal with ACL ?

my nginx configuration is this :


        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
        ssl_ciphers HIGH:!MD5:!RC4:!EXPORT:!aNULL:!eNULL:!SSLv2:!IDEA:!3DES;
        ssl_prefer_server_ciphers on;
        ssl_session_tickets off ;
        ssl_session_timeout 5m;
        ssl_session_cache shared:SSL:5m;

        ssl_certificate ssl.crt/mydomain.com_chain.crt;
        ssl_certificate_key ssl.key/mydomain.com.key;

       location / {
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "Upgrade";
           proxy_http_version 1.1;
           proxy_set_header Host $host;
           proxy_pass http://127.0.0.1:5075;

thanks

regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220920/ed44e448/attachment.html>


More information about the FreeSWITCH-users mailing list