def _getGreeting(self):
greeting = self._conn.read_until("<STR_LIT:\r\n>", connTimeout)<EOL>mobj = re.match('<STR_LIT>', greeting)<EOL>if mobj:<EOL><INDENT>self._ami_version = util.SoftwareVersion(mobj.group(<NUM_LIT:1>))<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>
Read and parse Asterisk Manager Interface Greeting to determine and
        set Manager Interface version.