<div>Thanks.</div><div> </div><div>Laurent<br><br></div><div class="gmail_quote">2012/3/7 Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<a href="http://www.kamailio.org/wiki/cookbooks/3.2.x/core#tcp_source_ipv4_tcp_source_ipv6" target="_blank">http://www.kamailio.org/wiki/<u></u>cookbooks/3.2.x/core#tcp_<u></u>source_ipv4_tcp_source_ipv6</a><br>
<br>
On 07.03.2012 16:40, Laurent Schweizer wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hello all,<br>
<br>
I have a linux server with different IP.<br>
<br>
eth0 -&gt; 10.2.2.4<br>
<br>
eth0:1 -&gt; 10.2.2.5<br>
<br>
I have kamailio listening on IP:<br>
<br>
listen=udp:<a href="http://10.2.2.5:5060" target="_blank">10.2.2.5:5060</a><br>
<br>
listen=tcp:<a href="http://10.2.2.5:5060" target="_blank">10.2.2.5:5060</a><br>
<br>
and in the script I do :<br>
<br>
rewritehostport(&quot;<a href="http://10.2.2.10" target="_blank">10.2.2.10</a>:<u></u>5060;transport=tcp&quot;);<br>
<br>
if (!t_relay()) {<br>
<br>
sl_reply_error();<br>
<br>
}<br>
<br>
exit;<br>
<br>
the problem is that t_relay is not using the IP 10.2.2.5 to forward this<br>
SIP request but the eth0 IP ( 10.2.2.4)<br>
<br>
I see that they is a function force_send_socket , I need to use this<br>
function to set the correct IP used to forward the request ?<br>
<br>
As I’m using only one IP 10.2.2.5 for openser, why he cannot always use<br>
this ip as default Ip ?<br>
<br>
Best regards<br>
<br>
Laurent<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br>