The suggestion of putting fop2 restart in the safe_asterisk restart script is a more practical solution assuming it is initiated everytime FreePBX is updated via the Apply changes GUI button (I'm not sure if it is).
The problem -that *some* fop2 clients stop responding after a while- does not happen if you reload asterisk. It only happens if asterisk is restarted or the ami connection is lost. I was very precise on the description. The safe_asterisk script will execute the commands only when asterisk crashes or is restarted via the asterisk cli
Again, I don't know why you are going off on a tangent trying to blame Asterisk. As I said repeatedly asterisk is NOT crashing. Asterisk is NOT crashing. Did I mention that asterisk is NOT crashing?
I am not going into any tangent, and I do not try to blame Asterisk. I make it perfectly clear that *if* asterisk crashes, you might experience the issue. Also if the AMI connection is lost. It does not happen if you reload asterisk, or if you apply changes in freepbx. If you are experience the issue, but your asterisk is stable, then check if the ami connection is stable too, you can do it by running fop2_server in debug mode ( -X 1) and let it run and look for manager disconnection messages. By the way, you NEVER said your asterisk did not crash before, on any of your posts. None of your posts is informative, they do not give information about your setup, your settings, your versions, anything. And you are not cooperating either as other users are doing. You are just spreading FUD.
You seem to have no concept of how people use this. Most use FreePBX and for those people your solution of "just restart fop2 service because it rarely happens" is ridiculous. FreePBX is constantly being used and the way FreePBX works is every change restarts asterisk which kills fop2. That does not seem to sink in with you for some reason. Also a lot of administrators like the ones I deal with do not know linux. They can use a browser and configure Asterisk via FreePBX but asking them to open a command line and restart the FOP2 service is a completely foreign concept to them. I may as well be asking them to fly to the moon.
Every change in FreePBX *reloads* asterisk, it does not restart it. A reload does not trigger the problem. And it does not kill fop2. Perhaps your problem is that AMI connections are breaking, if that is the case, you can increase the writetimeout in /etc/asterisk/manager.conf under the fop2 user.
Frankly, if you just said, "yea it's a problem, these things happen sometimes, I think I fixed it in the current beta which may be buggy right now" and then some sort of estimate on a stable version is a better answer.
I said it, but you seem to have a problem reading:
Anyways, the next fop2 version fixes this, as it is indeed a fop2 issue.
The beta is stable, you can use it safely right now.
You can also use fop 2.11 because I *think* the issue was introduced on 2.20.
In any case, I am talking about the issue that I have described here.. Perhaps there are other issues that have a similar symptom but a different cause. For example, in one case I was able to determine that Microsoft ISA server was having troubles with its nat tables and it was affecting fop2 , that stopped receiving updates but because ISA server was not keeping or was mixing connections to port 4445, but only for clients connecting via ISA server.
Look, I will stop responding to offensive or bashing posts. If you need support, please ask for it: provide information, and I will try to offer you a solution. A sane solution/suggestion or fix.
You never contacted me via email or live help (as far as I know), it is clear that your objective here is to spam the forum anonymously with FUD posts, trying to bash the software or myself. That does not help and it does not add up to the discussion. If you are a paid customer, and you are unhappy with the software, I can issue a refund. Please contact me via email or live help for that.