Close all doors between you and the smoke. if there is a working phone in the room, call the fire department, and tell the dispatcher where you are trapped.
Call the fire department even if you can see fire trucks through your window.
Stuff rags, towels, or clothing in the cracks and around doors to keep smoke out.
Wait at a window; signal the firefighters by waving a light-colored cloth or flashlight, and wait to be rescued.