Can anyone tell me what feature code will read out the extension number of a given station?

We have a jack that needs to be setup for a temp and we don't know what the extension number is.

We tried to call another phone with it, but it reads the name of the station, not the number.

We don't have access to programming, and the desi strips are missing?

How can we find out the extension number while stating at the phone.