Implement collect_call_domains function.