E
E
EVGENIJ NEFEDOV2018-11-14 16:13:02
Asterisk
EVGENIJ NEFEDOV, 2018-11-14 16:13:02

Is it possible to connect asterisk to 2 communication channels?

In the office, one communication channel fails about once a month on the provider's side, I want to connect a backup channel to Mikrotik as a second WAN, the question is, is it possible to make traffic from the asterisk (the base is located on the local network) go through both channels at once? Both channels have a static IP.
Of course, you can connect a backup channel when the main channel stops pinging, but as a rule, during failures, the Internet of the main channel works, just the ping starts jumping and the connection worsens, so Mikrotik will not automatically switch to the backup channel, but will switch only when the main channel stops altogether respond.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
brar, 2018-11-14
@brar

https://wiki.mikrotik.com/wiki/Load_Balancing
It is possible, but it is not a trivial task to resolve asterisk media traffic.
That is, according to the article "load balancing" you will do, but at the same time you will still need to configure the asterisk (and this depends on its current configuration).
Perhaps in your case it is easier to let all traffic from the asterisk through the second channel.

D
Drno, 2018-11-14
@Drno

I would auto-switch channels on Mikrotik. And then the action according to the script, like if the ping to 8.8.8.8 exceeds so much then - the transition to the reserve. And in the scheduler this is with a check every 10 seconds

D
Dmitry Alexandrov, 2018-11-14
@jamakasi666

Between the micros raise the bonding. Mikrot himself will sort out what is there and how. I have not tried it specifically with the asterisk, but I think everything will be fine as well. There is a possibility that if there are micro-losses anyway, switching rtp traffic to tcp will save it.
In a nutshell, bounding works like this:
You pass VPN through each channel. Optionally, you can tighten the encryption.
Through the 1st and 2nd vpn you pass EoIP.
You combine the resulting EoIP pair into bonding and you get stupidly one virtual interface with one IP at the output.
The software works as usual and does not even suspect that traffic is being aggregated. On microte, no collective farm channel switching scripts are needed, everything will be automatic and in the event of a connection break, the traffic will not be interrupted.
As a bonus, you get an increase in speed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question