How is your imac connected to the router, wired or wireless?
If wired worth trying another cable to see if that stops it. If not or wireless would consider having imac checked over particularly the power supply side, if it's giving off enough RF to make a phone line crackle then something may be wrong there.