[Asterisk-Users] Random outbound:

Andres andres at telesip.net
Fri Apr 1 17:36:00 MST 2005



Tim Connolly wrote:

> Can anyone suggest a way to randomly pick an outbound trunk so that 
> all trunks are used equally? I’m all about Equal Trunk Opportunity… 
> Seriously though, I’ve got 500 minutes per softphone account and I’d 
> like to use an equal amount on each as to not see overages on any 
> particular account until all have been depleted.
>
Use this:

CLI> show application random
CLI>
-= Info about application 'Random' =-

[Synopsis]:
Conditionally branches, based upon a probability

[Description]:
Random([probability]:[[context|]extension|]priority)
probability := INTEGER in the range 1 to 100


-- 
Andres
Network Admin
http://www.telesip.net





More information about the asterisk-users mailing list