def _initAsteriskVersion(self):
if self._ami_version > util.SoftwareVersion('<STR_LIT:1.0>'):<EOL><INDENT>cmd = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>cmd = "<STR_LIT>"<EOL><DEDENT>cmdresp = self.executeCommand(cmd)<EOL>mobj = re.match('<STR_LIT>', cmdresp)<EOL>if mobj:<EOL><INDENT>self._asterisk_version = util.SoftwareVersion(mobj.group(<NUM_LIT:2>))<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>
Query Asterisk Manager Interface for Asterisk Version to configure
        system for compatibility with multiple versions
        .
        CLI Command - core show version