 uint8_t hookState = 0;
 uint32_t hookTimeOut = 0;
 uint8_t followState = 1;
+uint8_t ringingState = 0;
+uint32_t ringingTimmer = 0;
+uint8_t ringingStage = 0;
 
 
 void setup()

        hookTimeOut = millis();
        hookState = newHookState;
        Serial.print(hookState ? OFF_HOOK : ON_HOOK);
    }    
}

void hook()


void ringStart()
{
    ringingState = true;
    ringingTimmer = millis();
    analogWrite(RINGER,128);
    ringingStage = 1;
}

void ringStop()
{
    ringingState = false;
    analogWrite(RINGER, 0);
}