add call state machine spec and update call state type