SIP trunk multi wan state not flushed - issues - Solution?
-
Hi,
about the issues of no flushing states on WAN IP change , on PFsense 2.1-RELEASE, after some searching around the forum, using precious information on the topic:
https://forum.pfsense.org/index.php?topic=65004.0
but not working in version 2.1 ("afterfilterchangeshellcmd" not working in config.xml anymore) , I find a "home made" solution working on the filter.inc code and using one script as in the topic I said before, so:
Create a script in /usr/local/bin named:"kill_pbx_states.sh" ( or as you want ) :
#!/bin/sh sleep 5 /sbin/pfctl -k VoipPBXorDevice_IP
Modified filter.inc adding line 148:
mwexec("/usr/local/bin/kill_pbx_states.sh");
My network configuration is :
2 WAN (ADSL)
1 LAN (local home network)with a mixed load balance and failover(only voip) configuration and sticky connections enabled.
Now my PBX ( based on freepbx-asterisk ) is working good and, looking at the states, when my WAN lines goes down&up everything about my PBX is cleared correctly.
It seems that default PFsense flushing is not enough but only killling them with pfctl is ok.
This is my case , hope that it can help anyone .