Voip over vpn?

There is a challenge
Given: two remote from each other office 1 and 2, respectively.
1 office 14 machines running windows 7 and 2 XP machines, 1 router zyxel keenetic start wired Internet from Beeline ISP dynamic public IP (l2tp, 80 MB/sec), 2 analog city lines each of which is connected at 2 parallel phone.
2 office 4 machine running windows 7, the same Beeline (l2tp, 80 MB/sec) only connected by a Wireless bridge Ubiquiti LiteBeam, 5GHz, 23dBi and the same zyxel keenetic start.
That's what I would like to achieve:
Full internal network between two offices, each computer sees all the rest in the folder network.
The staff of the office 2 can call and receive calls from one of the city lines office 1, also to the internal communication between all employees
Office 2 can receive a Fax with one of the city lines office 1

My guesses are that the network be arranged through VPN
In the office 1 one outside line to supply voip gateway
Put Asterisk on it to solve the issue with "the office 2 can call and receive calls from one of the city lines office 1"
The issue with internal communication between employees to solve the soft backgrounds zoiper for example
So... in practice is unknown as it gets
July 9th 19 at 13:36
3 answers
July 9th 19 at 13:38
Raise the VPN and connect network.
In one of the offices, which is better number 1, lift the asterisk. City analog lines will have to connect via gateways. Both gateway should connect via SIP to Asterisk. And Softphone in this implementation is not needed.
I almost understand vpn not raise the issue whether the PCs to see each other in "network"? - Zander.Wisozk commented on July 9th 19 at 13:41
: networks saw each other, you need to properly configure routing - kristian commented on July 9th 19 at 13:44
Thank you for your assistance, but I guess that in order to "network saw each other, you need to properly configure routing" I guess if it is incorrectly configured and will not work but as it is right??? - Zander.Wisozk commented on July 9th 19 at 13:47
: What do you mean? Logically or technically? Logically so: the network node that will establish the VPN connection needs to forward packets addressed to another network in the VPN tunnel. If this node is also the gateway for the workstations, then their station to adjust is not necessary.
But technically - it depends on the equipment. Can help set Microtiny as nodes VPN, and Zyxel no, but pozivaju that everything is easier. - kristian commented on July 9th 19 at 13:50
July 9th 19 at 13:40
For starters I think You need to solve the issue with "... dynamic public IP..." (how else do you think the VPN build?! DynDNS is not the solution... ) the Ideal option would be of course "static" on both sides, minimal "static" from the office 1!
Then the 2 analog lines to start at the Asterisk (need buy Board analog ports), everything else is on the level of work with a file with the config Asterisk... VoIP gateway will need as endpoints (by and large, then you can use regular phone sets!)... Enjoy!
why dyndns is not the solution? I use noip and I am glad and happy I do not know? - Zander.Wisozk commented on July 9th 19 at 13:43
: well, at least because of this plus one additional "mediator"!...
"The simpler the system, the higher its fault-tolerance...". In this context, the stability of your VPN will still depend on the stability of the service!

IMHO, "static" when building the VPN tunnels is desirable... - kristian commented on July 9th 19 at 13:46
July 9th 19 at 13:42
I would, also, like first puzzled statics, at least in one of the offices. How much do Beeline is now white IP? 500 rubles a month?
Plus, even if there is attachment to analog telephone lines (such as all customers know and are accustomed to), there is a persistent opinion that it is time to migrate to SIP, which will allow to fully use the flexibility and scalability of Asterisk in the future. Take the fact that you can deploy asterisk in any other geographical place and virtualnoy the car, not to mention moving office. Instead of buying the Board www.pbxware.ru/catalog/platy_digium/analogovye_platy buy SIP phones or SIP gateways.
Have already passed this question - the cost of a SIP phone (or SIP gateway on a single number) is more expensive than one VoIP gateway and distribute it to conventional analog phones, There's a point when the number of rooms from 8 and above!
When talking about the gateway to the "external" lines, then Yes: 2x, 4x-port gateway will be cheaper boards... Well here is a question of preference and budget! :) (when installing the Board - we are thrown back such item as electromagnetic interference, interference, faulty PSU gateways, low-grade cables, etc.) - Zander.Wisozk commented on July 9th 19 at 13:45
: Soran, distribute the answer thinking that TS. Removed. - kristian commented on July 9th 19 at 13:48
: PS I was talking, of course, about the external telephone number. External SIP line requires no gateways and boards. - Zander.Wisozk commented on July 9th 19 at 13:51

Find more questions by tags AsteriskVPNVoIP