Carl XII angrep Fredriksten.