# Stop the search $found = 1; } # Call parked? if ($found == 0 and $number != 'Paging' and $number != '') { # Translate user if needed $user = Aastra_get_userdevice_Asterisk($user); # Check if call has been parked $park = Aastra_check_park_Asterisk($user, $number); # Display orbit if ($park != '') { # Display current status require_once 'AastraIPPhoneStatus.class.php'; $object = new AastraIPPhoneStatus(); $object->setSession('Park'); $object->setBeep(); if (Aastra_size_display_line() > 16) { $object->addEntry('1', sprintf(Aastra_get_label('Call Parked at %s', $language), $park), 'alert', 5); } else { $object->addEntry('1', sprintf(Aastra_get_label('Parked at %s', $language), $park), 'alert', 5); } # Bug 3.2.1 if (Aastra_test_phone_version('3.2.1.', '1') == 0) { sleep(4); } # End of search $found = 1; } } # No match whatsoever if ($found == 0) {