def getFaxStatsSessions(self):
if not self.hasFax():<EOL><INDENT>return None<EOL><DEDENT>info_dict = {}<EOL>info_dict['<STR_LIT>'] = <NUM_LIT:0><EOL>fax_types = ('<STR_LIT>', '<STR_LIT>')<EOL>fax_operations = ('<STR_LIT>', '<STR_LIT>')<EOL>fax_states = ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',)<EOL>info_dict['<STR_LIT:type>'] = dict([(k,<NUM_LIT:0>) for k in fax_types])<EOL>info_dict['<STR_LIT>'] = dict([(k,<NUM_LIT:0>) for k in fax_operations])<EOL>info_dict['<STR_LIT:state>'] = dict([(k,<NUM_LIT:0>) for k in fax_states])<EOL>cmdresp = self.executeCommand('<STR_LIT>')<EOL>sections = cmdresp.strip().split('<STR_LIT>')<EOL>if len(sections) >= <NUM_LIT:3>:<EOL><INDENT>for line in sections[<NUM_LIT:1>][<NUM_LIT:1>:]:<EOL><INDENT>cols = re.split('<STR_LIT>', line)<EOL>if len(cols) == <NUM_LIT:7>:<EOL><INDENT>info_dict['<STR_LIT>'] += <NUM_LIT:1><EOL>if cols[<NUM_LIT:3>].lower() in fax_types:<EOL><INDENT>info_dict['<STR_LIT:type>'][cols[<NUM_LIT:3>].lower()] += <NUM_LIT:1><EOL><DEDENT>if cols[<NUM_LIT:4>] == '<STR_LIT>':<EOL><INDENT>info_dict['<STR_LIT>']['<STR_LIT>'] += <NUM_LIT:1><EOL><DEDENT>elif cols[<NUM_LIT:4>] == '<STR_LIT>':<EOL><INDENT>info_dict['<STR_LIT>']['<STR_LIT>'] += <NUM_LIT:1><EOL><DEDENT>if cols[<NUM_LIT:5>].lower() in fax_states:<EOL><INDENT>info_dict['<STR_LIT:state>'][cols[<NUM_LIT:5>].lower()] += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT><DEDENT>return info_dict<EOL>
Query Asterisk Manager Interface for Fax Stats.

        CLI Command - fax show sessions

        @return: Dictionary of fax stats.