A parameter to force a SIP trunk to always retry to connec


I have a somewhat problematic SIP trunk that goes down from time to time because it refuses the password. The password is correct and it eventually connects so I can only assume it is a glitch in the system.

Right now, it stops trying on wrong password and I have to manually SSH into the Asterisk server and force a reload to reconnect the trunk.

I would like to know if there is a parameter to tell Asterisk to keep trying (re)registering until it succeeds and ignore any registration errors.


This problem seems very similar ta a problem I had a while back.

I did not find any solution for this. The problem was resolved by upgrading the internet connection so it was more stable.

What version of Asterisk are you running?

I am using v11

If there is no parameter in Asterisk that does what you want, you can always write a cron job script that periodically checks the “sip show registry” status and does “sip reload” if the SIP registration to the provider fails.