DISH Network reached an agreement today to carry Media General’s television stations in 17 markets, including Charleston’s WCBD Channel 2, both companies announced in a joint release.

Terms of the agreement were not disclosed.

The two companies have been at odds for months over a new contract.

The agreement also affects nearby stations in Greenville/Spartanburg; Florence/Myrtle Beach; and Savannah and Augusta, Ga.