From the people that brought you the account code validation bug (See here: http://www.freepbx.org/forum/freepbx/tips-and-tricks/a-word-of-warning) We bring you the amazing Misc App hard limit!
Yes we’ve managed to break one our FreePBX installs yet again by doing somewhat stupid stuff
First off this is an old version of FreePbx (220.127.116.11), I have my reasons for this so please no flames about upgrading.
So here’s what happened, lets start with the symptoms:
Suddenly towards the end of the business day yesterday SOME out bound routes where simply not working, namely our North American long distance route which is a catch all for stuff not going local, pattern 1NXXNXXXXXX. Looking at the log the calls where getting: " rejected because extension not found". However other routes where working namely the local ones with more specific patterns.
We killed asterisk and still the problem persisted, obviously a dial plan problem. So we looked at what had recently changed by doing Diffs on the conf files from the previous days backups(Thanks to Mitch, the first baron of Bash for his command line skills). We eventually narrowed it down to the addition of three misc apps. We disabled the apps and problem solved.
It was now early evening so we where somewhat free to experiment. We re-enabled the apps and tried various patterns in the expectation that the pattern was somehow munging up the dial plan. Nope!
So then I thought maybe there is somehow a limit on the amount of Misc apps you can have. We deleted the three apps and viola working system. We then deleted three unused apps, added back in the apps we had previously deleted and the system was still working. Mitch then pointed out that we currently had 50 misc apps, a nice round number. This leads us to the conclusion that you are limited to 50 misc apps or things start going weird.
Why? Don’t know but its definitely some sort of context thing.
Does the problem extend passed 2.8.04? Don’t know…
So a word of warning if your coming up to 50 misc apps be careful!
Sorry if this has been discussed before. I did a couple of quick searches and couldn’t find anything.