     while (isTalking && (gsmVoiceCall.getvoiceCallStatus() == TALKING)) {
       refreshButtons();
     }
+    isTalking = false;
     gsmVoiceCall.hangCall();
     // ПРОВЕРИТЬ: когда занято.
   }

    isGettingDigit = false;
    if (isTalking) {
      isTalking = false;
    }
  }
}

void rotatingHandler(telephone::ButtonState buttonState) {
  if (isGettingPhoneNumber) {
    isGettingDigit = buttonState == PRESSED;
    if (isGettingDigit) {
      digitValue = 0;

  pinMode(ASTERISK_PIN, INPUT);
  pinMode(NUMBER_SIGN_PIN, INPUT);
  pinMode(PLUS_PIN, INPUT);
  pinMode(AUTO_START_GSM_PIN, OUTPUT);
  delay(100);
  digitalWrite(AUTO_START_GSM_PIN, HIGH);
