Hotels typically use controlled class of service (CCSA) on their phones. This is usually integrated with their property management system so that when a room is checked in the class of service on the phones in the room are automatically changed to allow outbound calling. Conversely, when the room is checked out the phones revert back to the restricted class, and cannot make outbound calls.
Many hotels will also use pre-translation tables, in these cases, the NCOS of the phone rarely comes into play in determining eligibility for trunk access.