Backup Internet and Provider Re-Registration
Configuring Backup Internet
Last updated
Was this helpful?
Configuring Backup Internet
Last updated
Was this helpful?
If your PBX is behind NAT and its public IP address changes, the PBX may not receive incoming calls until it re-registers with the provider, which by default can take 2–6 minutes.
Connect using SSH into your MikoPBX (documentation about different ways to do that - )
Create a new script file with this command:
The system will wait for input; paste the following script into the terminal:
Press CTRL+D to finish.
Make the file executable:
Go to the MikoPBX web interface → "System" → "System file customization":
Open the file: /var/spool/cron/crontabs/root
Append the following line to the end of the file:
This schedule runs the script every minute to check for a changed public IP. If the IP has changed, it re-registers all providers.
If the IP changes, you’ll see an informational log in system/messages
stating the old and new IP addresses.