hup on state dialing + refactoring: separate function get_calls