<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 10/25/2010 04:16 PM, Javier Gallart wrote:
<blockquote
 cite="mid:AANLkTik8pWtu9uT1=mPb_zSnztej5kHzPrEVPubgzeY7@mail.gmail.com"
 type="cite">Hello
  <div><br>
  </div>
  <div>sorry if this sounds too "newbie". I'm interested in the
drouting module. The first INVITE is correctly forwarded to the gw
foudn in the drouting table:</div>
  <div>
  <meta charset="utf-8">
  <font class="Apple-style-span" face="Times"><span
 class="Apple-style-span" style="font-size: medium;">
  <div>if (is_method("INVITE") &amp;&amp; !has_totag()) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do_routing("0");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;record_route();</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div>
  <div>However for subsequent messages (ACK, BYE) in the dialog I don't
know how to keep track of the ip resolved by the drouting logic so the
messages are correctly forwarded to the same gw. I've made some tests
using the dialog module with no success. Any hint?</div>
  <div><br>
  </div>
  <div>Thanks in advance</div>
  <div><br>
  </div>
  <div>Javier</div>
  </span></font></div>
</blockquote>
Hello<br>
<br>
You might want to use loose_route() to perform loose routing (defined
in RFC 3261) of in-dialog requests. (Loose_route also performs strict
routing)<br>
<br>
if (has_totag()){<br>
&nbsp;&nbsp;&nbsp; loose_route();<br>
&nbsp;&nbsp;&nbsp; t_relay();<br>
&nbsp;&nbsp;&nbsp; exit;<br>
}<br>
<br>
Marius<br>
<br>
</body>
</html>