The simplest and lowest-hanging fruit here is profit margin protection. Don't 
return routes from the LCR whose cost exceeds the sell rate. This will ensure 
that client 1 is never routed out Trunk 2, period - if Trunk 1 is exhausted, 
you don't complete the calls.

Then, add some logic to ensure that any given client's calls cannot monopolise 
more than x% of Trunk X, perhaps activated only if Trunk X is at least y% 
utilised. Make it possible to tune this on a per-client and per-trunk basis. 
You can use the dialog module to enforce all these thresholds.

That should get you to a good result. 

-- Alex

--
Sent via mobile, please forgive typos and brevity. 

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to