Hi All,
I was thinking of a requirement and wanted to know if it is possible. For
example:
I define two variables,
var(media-relay){1} = 1.2.3.4
var(media-relay){2} = 4.3.2.1
Now I wish to use both these relays randomly or in a 50-50 manner. So for
example, if I have something like this in my script:

modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")

$avp(media_relay) = $var(media-relay);

It should either randomly select between 1.2.3.4 and 4.3.2.1 or use some
algorithm to do a round-robin between them. Is this in someway possible in
the current setup?
Thanks in advance for any suggestion.

--- Jayesh
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to