get_connected_calls function better implement