Hey everyone,<br>Just wanted to bounce some things off the list to make sure I&#39;m not heading down the wrong path here.  I&#39;ll quickly explain my problem and then explain my plan to deal with it.  Please let me know if anyone sees an issue here.<br>
<br>Problem: I need to send FROM two different IP addresses based on the LCR group returned from next_gw();.  For example, if the gateway returned is in group_id=1 from the LCR I need to send FROM <a href="http://1.1.1.1:5060">1.1.1.1:5060</a>, if it&#39;s from group_id=2, I need to send FROM <a href="http://1.1.1.2:5060">1.1.1.2:5060</a>.  I need to do this on REQUEST_ROUTE and FAILURE_ROUTE.  Here is what I am thinking will work:<br>
<br>modparam(&quot;pv&quot;,&quot;shvset&quot;,&quot;gw_one=s:<a href="http://1.1.1.1:5060">1.1.1.1:5060</a>&quot;)<br>modparam(&quot;pv&quot;,&quot;shvset&quot;,&quot;gw_two=s:<a href="http://1.1.1.2:5060">1.1.1.2:5060</a>&quot;)<br>
<br>route{<br><br>  load_gws();<br>  next_gw();<br><br>  if(to_gw(&quot;1&quot;)){<br>
      force_send_socket($shv(gw_one));<br>  
}else if(to_gw(&quot;2&quot;)){<br>
      force_send_socket($shv(gw_two));<br> 
}<br>
<br>}<br><br><br>Sorry for not just trying this out on my own.  I currently don&#39;t have access to a dev machine, and I need to make changes to the live script... so I would prefer not to have a ton of restarts while trying to work the bugs out.<br>
<br><br>Thanks.<br><br><br>