How to prioritise route over 3 ADSL conections based on Ping

Hi All,

My setup : 3 ADSL modems connected to three Ethernet ports of my mt OS3.2 .I’m running VOIP and my 4th ethernet port connects to my lan and my asterisk server.

I want to route my voip traffic based on the lowest latency to my provider prioritised over the 3 ADSL modems. I would imagine I would ping each provider over each route and see what the latency is and based on this route the VOIP traffic.

Any ideas?

Thanks

Shaun