def answer(self):
        """ Answer the phone call.        
        :return: self (for chaining method calls)
        """
        if self.ringing:
            self._gsmModem.write('ATA')
            self.ringing = False
            self.answered = True
        return self
def answer ( self ) : if self . ringing : self . _gsmModem . write ( 'ATA' ) self . ringing = False self . answered = True return self
Answer the phone call.        
        :return: self (for chaining method calls)