The benefits of a proxy server before Asterisk

asteriskPROXYsip

We are busy to develop an app to let users call eachother using webRTC. On this moment we have audio working, but video not. Now I hear that a proxy server can be the solution for this problem. But it seems a bit illogical, because what are the benefits to place a proxy server before the sip server Asterisk? Why should the video flow with a proxy but not without a proxy?

I heard of kamailio as a proxy, registrar server before asterisk. But I can't find any information about the benefits and why video stream will flow.

I hope someone can point me in some kind of direction to figure this out.

Thanks in advance.

Best Answer

You haven't posted any addition details since asked for a couple of weeks ago so I'll try to answer as best I can (and recommend the question be closed):

Security: If your goal is to secure your Asterisk server then a proxy server / kamailio is not the answer. See Asterisk Security for details on how to do this.

Network: If your problem is NAT traversal then an SBC/Proxy can help - but isn't always necessary. Asterisk is pretty flexible in terms of publishing it's external IP in packets bound outside the local subnet. See NAT traversal for details on how to do this.

High Availability: If your goal is to add a proxy to redirect the traffic in the event of an Asterisk failure then a proxy isn't a great choice. (Nor is load balancing unless you don't need any session stickiness or synchronization etc). See High Availability for details on how to do this.