2010/8/27 truong ngoc THANH ngoc217thanh@yahoo.com:
hi, this problem is, the clients in the same NAT make call , and i see that media always be handled by rtpproxy. what is wrong ?
And why do you expect that force_rtp_proxy() would do nothing in case both endpoints are in the same LAN? where in the nathelper module documentation is writen that?? This is not an "out-of-the-box" feature so please don't complain if it "doesn't work" as just you expect.
If you want RtpProxy not to being invoked for calls within the same NAT, then you should code a specific logic in kamailio.cfg in order to avoid calling force_rtp_proxy() when caller and called are detected to be in same NAT.
This is the maximun I can help you on this thread as you have provided nothing (no tests, no attempts, no code) but just a wrong assumption about RtpProxy behavior. If you want a working code you should do it by yourself or pay a consultant to get it working.
Regards.