I want the proxy to re-route the request, without informing the client. Lets say - proxy receives message, forwards to back-end servers. If back-end server responds with 302 response, proxy shall use the contact header and then forwards the message to the correct backend server. Do we have support for this?<br>
<br><div class="gmail_quote">On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 08/01/2012 08:12 PM, Ananth Kollipara wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Which module does dynamic routing?<br>
</blockquote>
<br></div>
Lots of modules do various kinds of dynamic routing: drouting, lcr, dialplan, etc.<br>
<br>
But, they&#39;re rather formulaic.  If you&#39;re after something custom, just do it yourself using your TimesTen DB, db_unixodbc, and the sqlops module, which allows custom SQL queries and interactions:<br>
<br>
   <a href="http://www.kamailio.org/docs/modules/3.3.x/modules_k/sqlops.html" target="_blank">http://www.kamailio.org/docs/<u></u>modules/3.3.x/modules_k/<u></u>sqlops.html</a><br>
<br>
And, sending 302 redirects with the desired Contact header is very easy:<br>
<br>
   append_to_reply(&quot;Contact: &lt;sip:...&gt;\r\n&quot;);<br>
   sl_send_reply(&quot;302&quot;, &quot;Moved Temporarily&quot;);<div class="HOEnZb"><div class="h5"><br>
<br>
-- Alex<br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
Tel: +1-678-954-0670<br>
Fax: +1-404-961-1892<br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
</div></div></blockquote></div><br>