def getCodecList(self):
if self.checkVersion('<STR_LIT>'):<EOL><INDENT>cmd = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>cmd = "<STR_LIT>"<EOL><DEDENT>cmdresp = self.executeCommand(cmd)<EOL>info_dict = {}<EOL>for line in cmdresp.splitlines():<EOL><INDENT>mobj = re.match('<STR_LIT>',<EOL>line)<EOL>if mobj:<EOL><INDENT>info_dict[mobj.group(<NUM_LIT:5>)] = (mobj.group(<NUM_LIT:4>), mobj.group(<NUM_LIT:6>))<EOL><DEDENT><DEDENT>return info_dict<EOL>
Query Asterisk Manager Interface for defined codecs.

        CLI Command - core show codecs

        @return: Dictionary - Short Name -> (Type, Long Name)