The only reason I would choose to keep the values at the top is because I have 4 machines which all need a copy of the script.... but would need the IP changed per machine. Since the IP will be referenced in both REQUEST_ROUTE and FAILURE_ROUTE, i just figured it was easier to store in a PV instead of having to change it 2 places for each machine.<br>
<br>Thanks.<br><br><div class="gmail_quote">On Fri, Jun 25, 2010 at 4:12 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Geoffrey Mina writes:<br>
<br>
> modparam("pv","shvset","gw_one=s:<a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a>")<br>
> modparam("pv","shvset","gw_two=s:<a href="http://1.1.1.2:5060" target="_blank">1.1.1.2:5060</a>")<br>
><br>
> route{<br>
><br>
> load_gws();<br>
> next_gw();<br>
><br>
> if(to_gw("1")){<br>
> force_send_socket($shv(gw_one));<br>
> }else if(to_gw("2")){<br>
> force_send_socket($shv(gw_two));<br>
> }<br>
><br>
> }<br>
<br>
</div>force_send_socket does what do want to do, but i don't know if it<br>
accepts pv argument. also, i don't see why you need to use pv argument,<br>
rather than write force_send_socket(<a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a>), etc.<br>
<font color="#888888"><br>
-- juha<br>
</font></blockquote></div><br>