<br>The req-URI will contain the value of location&#39;s contact field and the received will be placed in an internal structure as destination so the SIP message is sent there.<br>I am not sure about the attr2dest function but I guess both functions (lookup and att2dest) affects the same destination field. Someone with more internal knowledge would have to assure this.
<br><br>Regards,<br>Samuel.<br><div><span class="gmail_quote">2008/1/18, Tomasz Zieleniewski &lt;<a href="mailto:tzieleniewski@gmail.com">tzieleniewski@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi,<br><br>You mean that the ruri will be set with the local IP but the message next hop destination will be set to the sip:<a href="http://80.53.110.142:61066/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
80.53.110.142:61066</a> or to destip:destport? <br>The same destination which is for instance set with the usage of attr2dest function?<br><span class="sg"><br>-tomasz</span><div><span class="e" id="q_1178f18eeee39b61_2">
<br><br><div class="gmail_quote">On Jan 18, 2008 6:58 PM, samuel &lt;<a href="mailto:samu60@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">samu60@gmail.com </a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.80ex; padding-left: 1ex">
<br>it is correct, it will have received as next hop address where to send the message to. <br><br>sam.<br><div><span class="gmail_quote">2008/1/18, Tomasz Zieleniewski &lt;<a href="mailto:tzieleniewski@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
tzieleniewski@gmail.com </a>&gt;:</span><blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.80ex; padding-left: 1ex">
<div><div> Hi,<br><br>I have the followning natted contact in my location table:<br>mysql&gt; select * from location where uid =&#39;<a href="mailto:tw@sip.touk.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 tw@sip.touk.pl</a>&#39;;<br><br>+--------------------+-------+-----------------------------------------------------------+ <br>| contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | flags | received&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
  +--------------------+-------+-----------------------------------------------------------+<br>| <a href="mailto:sip:tw@192.168.7.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> sip:tw@192.168.7.2 
</a> |&nbsp;&nbsp;&nbsp;&nbsp; 1 | sip:<a href="http://80.53.110.142:61066" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">80.53.110.142:61066</a>;dstip=<a href="http://192.168.129.74" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 192.168.129.74</a>;dstport=5060 | <br>+--------------------+-------+-----------------------------------------------------------+ <br><br>when I invoke lookup_contacts the ruri&nbsp; has local address <a href="http://192.168.7.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
  192.168.7.2</a> instead of public one.<br>Is this correct behaviour?<br><br>Please point me is this should work as I think.<br> Thank You for any help<br><span>Tomasz<br><br></span><br></div></div>_______________________________________________ 
<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@lists.iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 http://lists.iptel.org/mailman/listinfo/serusers</a><br><br></blockquote></div><br></blockquote></div><br></span></div></blockquote></div><br>