Updated

The Baltimore Ravens and defensive end Elvis Dumervil have agreed in principle to a five-year deal.

The pact is contingent upon his passing a physical, which is due to take place in Baltimore on Tuesday.

Dumervil, 29, was released by Denver earlier this month after his agent missed a waiver wire deadline for Dumervil's contract paperwork to be submitted to the NFL.

"As we have from the start of this process, we worked diligently over the last week to find a way for Elvis Dumervil to remain a Denver Bronco. Although we made multiple contract offers to Elvis after being forced to release him, we were unable to reach an agreement and are now moving forward without him," said John Elway, Broncos executive vice president of football operations.

The snafu in paperwork forced the Broncos to release Dumervil, who had spent his first six seasons in Denver after the club drafted him in the fourth round (126th overall) back in 2006.

Over 16 games last season, Dumervil recorded a career-high 54 tackles and 11 sacks. The Louisville product recorded an NFL-best 17 sacks in 2009, and has 63 1/2 sacks and 16 forced fumbles over 91 career appearances. He missed the entire 2010 season after suffering a torn pectoral muscle in training camp.

Dumervil, who played defensive end in the Broncos' 4-3 defensive scheme, will likely replace former Ravens outside linebacker Paul Kruger in Baltimore's 3-4 alignment.

The three-time Pro Bowler will be reunited with Ravens linebackers coach Don Martindale, who held the same position with Denver in 2009, Dumervil's best season as a pro.