hi canon uses flash as fill in so in av mode it can put in a slow sync. i know with my 550d in the custom functions i can limit my flash speed to 1/60 -/1200, not sure about the 5d so you may have to use tv or manual mode. look at this link for more info
http://photonotes.org/articles/eos-flash/