def _login(self):
self._sendAction("<STR_LIT>", (<EOL>("<STR_LIT>", self._amiuser),<EOL>("<STR_LIT>", self._amipass),<EOL>("<STR_LIT>", "<STR_LIT>"),<EOL>))<EOL>resp = self._getResponse()<EOL>if resp.get("<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>
Login to Asterisk Manager Interface.