After last security upgrade ( FreePBX framework 2.5.2.3) the pbx partially stopped working.
I used # in the amp password up until the last secure update (FreePBX Framework 2.5.2.3). Hade to change the password to something without # to get the pbx functional again.
The function function parse_amportal_conf($filename) is found in a number of files. But the handling of valid name/value is done in 3 diffrent ways,
if (preg_match("/^\s*([a-zA-Z0-9_]+)=([a-zA-Z0-9 .&-@=_<>\"\']+)\s*$/",$line,$matches))
if (preg_match("/^\s*([a-zA-Z0-9]+)\s*=\s*(.*)\s*([;#].*)?/",$line,$matches))
if (preg_match("/^\s*([\w]+)\s*=\s*\"?([\w\/\:\.\*\%-]*)\"?\s*([;#].*)?/",$line,$matches))
As I used # in the amp password, thoes functions using the first variant will not get the password from the conf-file as it does not match # as a valid char.