Smart Phone light
The circuit is fully isolated from the phone lines and it draws current only when the phone rings. The circuit provides automatic switching on of a lamp during darkness when the phone is kept in a place such as the bedroom. The lamp can be battery powered to provide light during power failure or load shedding. This avoids delay in attending to a call. The light switches off automatically after a programmable time period and it needs no attention at all. If required, the lamp lighting period can be extended by simply pressing a pushbutton switch (S1). The first part of the circuit functions as a ring detector. When telephone is on-hook, around 48V DC is present across the TIP and RING terminals. The diode in the opto-coupler is ‘off’ during this condition and it draws practically no current from he telephone lines.
Source: http://www.electronic-circuits-diagrams.com/telephonesimages/telephonesckt12.shtml