Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SIP trunk multi wan state not flushed - issues - Solution?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    1 Posts 1 Posters 639 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      simont
      last edited by

      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 .

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.