Hello
I have the follwoing netwok toplogy and I need some help if Asterisk can be configured to get connection between all clients:
Router1 Router2
+--------------------+ +---------------------+
+---------+ | | | +---------+
| SIP | local LAN | OpenVPN server | | | local LAN | SIP |
| client1 +--------------+ +--------------+---------------+ OpenVPN client +------------+ Client2 |
| | | Asterisk server | | | | | |
+---------+ | | | | | +---------+
| | | | |
+--------------------+ | +---------------------+
Internet
| Router3
| +---------------------+
| | |
| | | +---------+
| | OpenVPN clent | local LAN | SIP |
+---------------+ +------------+ client3 |
| | | | |
| | | +---------+
| +---------------------+
|
|
|
Android phone | Android phone
+-----------+ | +------------+
| OpenVPN | | | OpenVPN |
| client | | | client |
| +----------+---------+ |
| SIP | | SIP |
| client4 | | client5 |
+-----------+ +------------+
The OpenVPN I can configre that all clients can register to router1 (Asterisk server).
So configuration of the OpenVPN is not the topic here. It should not be a problem. I have it already running so that even all clients can reach each other.
The problem is that OpenVPN is a star confguration that means all traffic e.g. RTP VOIP traffic will be tunneled always via the server. So e.g. if client2 is connected to client4 all the RTP traffic is tunneld via the server (router1) which is then always the bottleneck. The configuration would be easy since there are no NAT issues due to the VPN connection.
So here comes the question:
Is it possible to configure Asterisk to register over OpenVPN but later use direct media connection e.g. using SRTP directly between the clients in this topology? It must be possible between all clients.
Please note that e.g. client 5 could be moved to client 2 if it is at home connected to local LAN using WLAN.
I want to use Linphone on Android phones as well as on the windows clients connected to the routers local LAN.
How has Asterisk and the clients to be configured to cope with the NATs on the routers. Is it possible at all?
Thanks
Stefan