The rest period is AT LEAST the length of the previous duty. Therefore, it does last until your next duty starts even if that time period is longer than your previous duty.
It is rest BEFORE your next duty.
If the company wants to contact you at a time before your next duty starts they should start your next duty earlier. If you see what I mean.