def _connect(self):
try:<EOL><INDENT>self._eslconn = ESL.ESLconnection(self._eslhost, <EOL>str(self._eslport), <EOL>self._eslpass)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>if not self._eslconn.connected():<EOL><INDENT>raise Exception(<EOL>"<STR_LIT>"<EOL>% (self._eslhost, self._eslport)<EOL>)<EOL><DEDENT>
Connect to FreeSWITCH ESL Interface.