def _parseFreePBXconf(self):
amiuser = None<EOL>amipass = None<EOL>if os.path.isfile(confFileFreePBX):<EOL><INDENT>try:<EOL><INDENT>fp = open(confFileFreePBX, '<STR_LIT:r>')<EOL>data = fp.read()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>'<EOL>% confFileFreePBX)<EOL><DEDENT>for (key, val) in re.findall('<STR_LIT>',<EOL>data, re.MULTILINE):<EOL><INDENT>if key == '<STR_LIT>':<EOL><INDENT>amiuser = val<EOL><DEDENT>elif key == '<STR_LIT>':<EOL><INDENT>amipass = val<EOL><DEDENT><DEDENT>if amiuser and amipass:<EOL><INDENT>self._amiuser = amiuser<EOL>self._amipass = amipass<EOL>return True<EOL><DEDENT><DEDENT>return False<EOL>
Parses FreePBX configuration file /etc/amportal for user and password
        for Asterisk Manager Interface.

        @return: True if configuration file is found and parsed successfully.