On 08/05/2010 07:58 PM, Carlos Ruiz Diaz wrote:
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 10.8.0.0/24, which of course will not reach their destination--but that's not the point.
Also, do you have the 'mhomed' option set to 1 in your Kamailio config?
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.0.x#mhomed
It is a requirement in this case.
/tcpdump udp /shows packets coming from *B* when perl is running, but no packets are received using t_relay() and kamailio
That is because the source socket on the Perl script side is probably interface-agnostic and just uses the IP routing table plainly.
The 'mhomed' option set to 1 did the trick!!!! Thank you so much!
I didn't knew that kamailio uses its own routing table.
Thank you again.
Carlos.
On Thu, Aug 5, 2010 at 8:02 PM, Alex Balashov abalashov@evaristesys.comwrote:
On 08/05/2010 08:16 PM, Carlos Ruiz Diaz wrote:
The 'mhomed' option set to 1 did the trick!!!! Thank you so much!
I didn't knew that kamailio uses its own routing table.
It's not so much that, it just determines where to route the packet based on more esoteric criteria. :-)
No problem, good luck!