Murdered Hannah Foster made a secret 999 call to try and alert the emergency services to her abduction, a court has heard.