Iptables & quintum gateway problems

We recently got a quintum AF series gateway to connect our incoming line to freepbx but the firewall seems to block the gateway after a few minutes and have to restart of stop iptables to get it working again. I have set a rule on the input chain to allow all traffic from the gateway but does not help. Anyone had this problem before?
Thanks