I
I
Igor2021-07-26 11:56:15
Nginx
Igor, 2021-07-26 11:56:15

Is it possible to proxy WebRTC + Asterisk?

Is it possible to proxy via ngix WebRTC + Asterisk?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Berkutman, 2021-07-26
@Berkutman

upstream asterisk {
  server 127.0.0.1:8088;
}
server {
  ...
  location /ws {
    proxy_buffers 8 32k;
    proxy_buffer_size 64k;
    proxy_pass http://asterisk/ws;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 999999999;
  }
}

https://www.bidon.ca/fr/notes/asterisk-webrtc
https://wiki.asterisk.org/wiki/display/AST/Configu...
https://wiki.asterisk.org/wiki/display /AST/WebRTC+...

K
ky0, 2021-07-26
@ky0

Nginx is a web server. For proxying general purpose (non-HTTP) traffic, there is much better software available, such as iptables/nftables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question