$err_text = Aastra_get_label('Please contact your administrator.', $language); if ($nb_softkeys) { if ($nb_softkeys == 6) { $err_key = array('6', Aastra_get_label('Exit', $language), 'SoftKey:Exit'); } $err_key = array('10', Aastra_get_label('Exit', $language), 'SoftKey:Exit'); } } # Process action switch ($action) { # Init case 'init': # No user yet if ($user == '') { require_once 'AastraIPPhoneInputScreen.class.php'; if (Aastra_is_multipleinputfields_supported()) { # Multiple input fields Mailbox and password $object = new AastraIPPhoneInputScreen(); $object->setDestroyOnExit(); $object->setDisplayMode('condensed'); $object->setTitle(Aastra_get_label('VoiceMail Access', $language)); $object->setURL($XML_SERVER . '&action=check'); $object->addField('empty'); $object->addField('number'); $object->setFieldPrompt(Aastra_get_label('Mailbox:', $language)); $object->setFieldParameter('user'); $object->addField('number'); $object->setFieldPrompt(Aastra_get_label('Password:'******'pin'); $object->setFieldPassword('yes'); } else {
if (file_exists('../include/AastraAsterisk.php')) { $asterisk = True; require_once 'AastraAsterisk.php'; } # Log call to the application if ($asterisk) { Aastra_trace_call('asterisk_csv_dir', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user='******', speed=' . $speed); } else { Aastra_trace_call('csv_directory', 'action=' . $action . ', lookup=' . $lookup . ', page=' . $page . ', index=' . $index . ', lastn=' . $lastn . ', firstn=' . $firstn . ', user='******', speed=' . $speed); } # Test User Agent Aastra_test_phone_versions(array('1' => '', '2' => '1.4.2.', '3' => '2.5.3.', '4' => '2.5.3.', '5' => '3.0.1.'), '0'); # Get Language $language = Aastra_get_language(); # Get global compatibility $is_multipleinputfields = Aastra_is_multipleinputfields_supported(); $nb_softkeys = Aastra_number_softkeys_supported(); $is_icons = Aastra_is_icons_supported(); $is_lockin = Aastra_is_lockin_supported(); $is_style_textmenu = Aastra_is_style_textmenu_supported(); $is_formatted_textscreen = Aastra_is_formattedtextscreen_supported(); $is_textmenu_wrapitem = Aastra_is_textmenu_wrapitem_supported(); # Retrieve the size of the display $chars_supported = Aastra_size_display_line(); if ($is_style_textmenu) { $chars_supported--; } # To handle non softkey phones if ($nb_softkeys) { $MaxLines = AASTRA_MAXLINES; } else {