Dynamical dipole mode in heavy-ion fusion reactions by using stable and radioactive beams