WHEN I WAS HAVING/EATING DINNER, THE PHONE RANG.

2. When I was having/eating dinner, the phone rang.