Actor and estranged wife finally come to child custody terms