<div dir="ltr">For 2) one approach is to make use of the attributes column (assuming you are using drouting or dispatcher modules).<div><br></div><div>When you call do_routing() or ds_select_dst() you will get your attributes for the match as an AVP once the function has been called.</div>
<div><br></div><div>You can then switch on this rather than hardcoding an IP</div><div><br></div><div>e.g. replace_to=1 could be an attribute.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 11 December 2013 18:08, Nick Cameo <span dir="ltr">&lt;<a href="mailto:symack@gmail.com" target="_blank">symack@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For 1)<br>
<br>
modparam(&quot;uac&quot;,&quot;restore_mode&quot;,&quot;auto&quot;):<br>
<a href="http://www.opensips.org/html/docs/modules/devel/uac.html#id249062" target="_blank">http://www.opensips.org/html/docs/modules/devel/uac.html#id249062</a><br>
</blockquote></div><br></div>