Are you using ACD Agent IDs or are the endpoints members of the hunt groups?

What you want to do is simple, but each method is slightly different.