The  &#39;mhomed&#39; option set to 1 did the trick!!!! Thank you so much!<br><br>I didn&#39;t knew that kamailio uses its own routing table.<br><br>Thank you again.<br><br>Carlos.<br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 8:02 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 08/05/2010 07:58 PM, Carlos Ruiz Diaz wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
2) I am sorry, I think I did not understand the question. Did you mean<br></div>
if the messag exists when leaving tun0 in *B* going to tun0 in *A*?<br>
</blockquote>
<br>
My concern is that the packet is going out on eth0 despite being intended to go out of tun0.  Try to do a packet capture on eth0 and look for packets addressed to <a href="http://10.8.0.0/24" target="_blank">10.8.0.0/24</a>, which of course will not reach their destination--but that&#39;s not the point.<br>

<br>
Also, do you have the &#39;mhomed&#39; option set to 1 in your Kamailio config?<br>
<br>
<a href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#mhomed" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#mhomed</a><br>
<br>
It is a requirement in this case.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
/tcpdump udp /shows packets coming from *B* when perl is running, but no<div class="im"><br>
packets are received using t_relay() and kamailio<br>
</div></blockquote>
<br>
That is because the source socket on the Perl script side is probably interface-agnostic and just uses the IP routing table plainly.<div><div></div><div class="h5"><br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
1170 Peachtree Street<br>
12th Floor, Suite 1200<br>
Atlanta, GA 30309<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><br>
<br>
_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br>