Hi All,<br>I was thinking of a requirement and wanted to know if it is possible. For example: <br>I define two variables,<br>var(media-relay){1} = 1.2.3.4<br>var(media-relay){2} = 4.3.2.1<br>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:<br>
<br>modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")<br><br>$avp(media_relay) = $var(media-relay);<br><br>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?<br>
Thanks in advance for any suggestion.<br><br>--- Jayesh<br>