H
H
Human2016-05-13 14:53:55
Asterisk
Human, 2016-05-13 14:53:55

How to automatically re-raise the trunk?

I set everything up according to the instructions https://zadarma.com/en/support/instructions/freepb...
I have freepbx-distro
In theory, it costs qualify=400, which means, judging by the description of the option, to auto raise the trunk in case of unavailability, but it doesn't happen.
Not later than today, the trunk fell, we waited an hour and it did not recover (and hung in the UNREACHEABLE status)
Zadarma's ip pinged when I did fwconsole restart everything worked.
I would like to know how you can re-raise the trunk in the Unreacheable state and somehow monitor it automatically

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor, 2016-05-14
of Humans @tenhi_shadow

disable sip alg
reset script on Mikrotik:

Засунуть в шедулер раз в 2 минуты
:foreach i in=[/ip firewall connection find dst-address~":5060" protocol~"udp"] do={ /ip firewall connection remove $i }
Если у вас локальный порт не 5060 а другой - поменять в скрипте на ваш

D
Dmitry Shitskov, 2016-05-13
@Zarom

It seems to me that your problem is not that the trunk itself does not rise.
qualify=400 only means that Asterisk will check the availability of the peer after this interval and issue the corresponding status.
You should find out why Astersik is losing connection. Perhaps the provider changes the ip of the servers, and Asterisk does not update the DNS name mapping, or does not have access to the DNS. Check that the ip of the trunk in Asterisk and the ip of the server that you pinged match.
Is your Asterisk behind NAT?

H
Human, 2016-05-13
of Humans @tenhi_shadow

1. Asterisk behind NAT
2. Incoming-outgoing disappear
3. "Check that the ip of the trunk in Asterisk and the ip of the server that you pinged match."
registered sip show peers and pinged exactly that ip, he responded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question