<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif">Hi Ross,</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">Thanks for your help.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">I'll try to better explain the situation:  RTSP clients will access my RTSP reverse proxy server after some network NAT will translate their rtsp address into my proxy address. i.e. rtsp://<real-backend-server-ip>/... will be NAT translated into my proxy server ip. However the RTSP URL will still contain the original backend server IP. I want to use the real backend server IP for connecting to the real backend RTSP server from the proxy. Moreover, multiple server might have the same URI suffix(i.e. /video_stream1) so I don't want to ask for a different URI in the proxy.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">I hope it's more clear now.</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 22, 2021 at 6:25 PM Ross Finlayson <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Feb 22, 2021, at 7:14 AM, Idan Freiberg <<a href="mailto:idan@tokagroup.com" target="_blank">idan@tokagroup.com</a>> wrote:<br>
> <br>
> That basically means the server acts as a gateway behinds multiple backend video sources (RTSP sources). So I need to find a way in the application layer to route the traffic to the right backend rtsp server related to a specific video source.<br>
<br>
You’re still not explaining your problem very well, but I assume - from your description - that you want something like this:<br>
<br>
<br>
back-end RTSP stream 1  ->      +————————————+<br>
back-end RTSP stream 2  ->      |                                               |<br>
back-end RTSP stream 3  ->      | Your ‘reverse’ proxy server   |       ->      front-end RTSP client<br>
…                                                       |                                               |<br>
back-end RTSP stream N  ->      +————————————+<br>
<br>
<br>
If this is the case, then I’d describe your "‘reverse’ proxy server” as being in front of "multiple backend video sources”; not “behind multiple backend video sources”.<br>
<br>
Is your "‘reverse’ proxy server” intended to (somehow) select from one of these N back-end RTSP streams - so that only one back-end RTSP stream is streaming at a time (rather than having all back-end streams flowing simultaneously, with your ‘server’ somehow ‘mixing’ the incoming streams)?  If so, then how do you intend your server to choose which back-end RTSP stream to use?  In other words, what criteria would your server use to decide which back-end RTSP stream to use?<br>
<br>
The usual way to do this would be to just use the stream name (in the front-end “rtsp://“ URL) to select the back-end stream.  I.e., each of the N back-end RTSP streams would be represented by a different stream name requested by the front-end RTSP client.  If these N back-end streams are known in advance, then you could do this already, with our existing ‘LIVE555 proxy server”, by running:<br>
        live555ProxyServer <back-end-RTSP-stream-URL-1> <back-end-RTSP-stream-URL-2> … <back-end-RTSP-stream-URL-N><br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p style="margin:0cm"><b style="color:rgb(34,34,34)"><span lang="en-IL" style="font-size:18pt;font-family:Arial,sans-serif;color:rgb(7,55,99);letter-spacing:0.25pt"><img border="0" width="52" height="64" src="https://docs.google.com/uc?export=download&id=1E7eJRLbRy_6_ut5d_DsxKI4M84ktGQ1b&revid=0B5YGrTZ_iHcNSXYvSGl2bW1pczRERDg0d0s5K1lwODkweFJrPQ" style="width: 0.5416in; height: 0.6666in;"></span></b><b><span lang="en-IL" style="font-size:13.5pt;font-family:Arial,sans-serif;letter-spacing:0.25pt"><font color="#666666">Idan Freiberg</font></span><span lang="en-IL" style="color:rgb(7,55,99);font-family:Arial,sans-serif;letter-spacing:0.25pt;font-size:24px"> </span></b><span lang="en-IL" style="font-size:12pt;font-family:Arial,sans-serif;letter-spacing:0.25pt"><font color="#999999">Software Engineer</font></span></p><p style="color:rgb(34,34,34);margin:0cm;font-stretch:normal"><span lang="en-IL"><img border="0" width="396" height="25" src="https://docs.google.com/uc?export=download&id=1G7brTliHaFUdHpNiFg2KidobZKtlGmbL&revid=0B5YGrTZ_iHcNaWVjdlpsTG1uSUlzbGhUeGFXSE1EcHhCRG9rPQ" style="width: 4.125in; height: 0.2583in;"></span><span lang="en-IL"><u></u><u></u></span></p><p style="color:rgb(34,34,34);margin:0cm;font-stretch:normal"><span lang="en-IL" style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)">Tel. + 972 522  925 213 |</span><span lang="en-IL" style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(7,55,99)"> </span><span lang="en-IL" style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)"><img border="0" width="16" height="16" src="https://docs.google.com/uc?export=download&id=1FJVjNGhyvqJfgUTldz29PCpn36MTrazI&revid=0B5YGrTZ_iHcNWWs3VEl5YVRqYVEydVFFQ3piZ0d2RVdyRTZRPQ" style="width: 0.1666in; height: 0.1666in;"></span><span lang="en-IL" style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)"> Toka</span><span lang="HE" dir="RTL"><u></u><u></u></span></p><p style="color:rgb(34,34,34);margin-right:0cm;margin-bottom:12pt;margin-left:0cm;font-stretch:normal"><span lang="en-IL"><a href="mailto:idan@tokagroup.com" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)">idan@tokagroup.com</span></a></span><span lang="en-IL" style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)"> | </span><span lang="en-IL"><a href="http://www.tokagroup.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:9pt;font-family:Helvetica,sans-serif;color:rgb(58,70,83)">www.tokagroup.com</span></a><u></u><u></u></span></p><p style="color:rgb(34,34,34);margin:0cm;font-stretch:normal"><span lang="en-IL" style="font-size:12pt"> </span><span lang="en-IL"><img border="0" width="88" height="25" src="https://docs.google.com/uc?export=download&id=1G6n0vgt5VJEwLLXYnbjfMoLsu2T5Wi8X&revid=0B5YGrTZ_iHcNNjFuQURKMEtJQXQzVC84NzJ1RXNWMWM3U0gwPQ" style="width: 0.9166in; height: 0.2583in;"></span></p></div></div>