To make a suitable solution to reset states with an external SIP Provider after failback to primary gateway
Caution : It use Afterfilterchangeshellcmd feature and can broke your custom configuration if you already use it
- Inspired and to resolve issues referenced below
- How to install
curl -s https://raw.githubusercontent.com/binou-31/pfsense-scripts/master/installer_rst-sip-provider.sh | sh -s $SIP_PROVIDER_URL
| Where SIP_PROVIDER_URL variable is your sip domain/IP (e.g. : sip.provider.fr)
-
What does it do
- It create script
/usr/local/bin/rst-sip-provider.sh
- It install ShellCMD package to allow modification of the script launcher from the webGUI
- It change the configuration /conf/config.xml to work it
- It create script
-
To verify that it works
# Execute
/etc/rc.filter_configure_sync
# You should seeing in the /var/log/system.log
clog -f /var/log/system.log
Apr 13 19:43:41 <hostname> /usr/local/bin/rst-sip-provider.sh[85545]: Reset States for SIP Provider (sip.provider.fr) killed 2 states from 1 sources and 1 destinations