break; case '3': # Init continue $continue = True; # Check credentials if ($AA_FREEPBX_MODE == '1') { $mode = 'login'; } else { $mode = 'sip'; } if (!Aastra_verify_user_Asterisk($extension, $password, $mode)) { # Display error $object = new AastraIPPhoneTextScreen(); $object->setDestroyOnExit(); if (Aastra_is_lockin_supported()) { $object->setLockIn(); } $object->setTitle(Aastra_get_label('Authentication failed', $language)); $object->setText(Aastra_get_label('Wrong credentials.', $language)); if ($nb_softkeys) { if ($nb_softkeys == 6) { $object->addSoftkey('6', Aastra_get_label('Close', $language), $XML_SERVER . '&action=input&step=1&extension=' . $extension); } else { $object->addSoftkey('10', Aastra_get_label('Close', $language), $XML_SERVER . '&action=input&step=1&extension=' . $extension); } } else { if ($is_doneAction) { $object->setDoneAction($XML_SERVER . '&action=input&step=1&extension=' . $extension); } } $continue = False;