Sherri Shepherd and Lamar Sally have been going through a nasty divorce, but their ongoing custody battle has finally ended.

The former "The View" co-host and Sally have settled on an agreement orders Shepherd to pay for child support, TMZ reported. She will give Sally $4,100 a month in child support until their son turns 13, when the amount will increase to $4,600.

Ever since their child was born via surrogate, the two have been battling it out. When they officially filed for divorce back in May of 2014, their son had not been born yet. He was expected to be delivered in July and in the court papers, Sally wanted full custody of the unborn baby to "prevent [Shepherd] from interfering with his ability to take the kid with him after the birth." He believed that Shepherd pushed to have surrogate deliver the baby strictly for the purpose of getting child support.

But in April of this year after controversy, Shepherd was ruled the legal mother of the boy. It was unclear at first if she was indeed legal mother, which is why they were in disagreement over who would be financially responsible for him, but "the court found that the baby has two legal parents and those people are the two people who conceived him, Lamar Sally and Sherri Shepherd."

Now, according to the new settlement agreement, Shepherd is "allowed to pursue her fraud claim and if the appeals court rules in her favor, her child support obligations will disappear." The couple also has embryos still in storage and Shepherd wants them destroyed, but Sally is unsure if that's what he wants. If he decides to bring the embryos into effect, Shepherd will not have to continue to pay the child support.

Click HERE to see how and when the divorce drama all started.