Iranian President Mahmoud Ahmadinejad in a speech before the sermon for Friday prayers called on authorities to punish those who threatened the regime in Tehran in the wake of the June 12 election , state-funded broadcaster Press TV reports .