Create five voice trunks, one for each IP. Set up registration and authentication as needed. On the one that is the primary outbound path, create a voice grouped-trunk with the appropriate outbound dial patterns and a cost of 0. On the secondary one do the same with a cost greater than 0.