Hi Roberto, If using STUN, it is up to UACs to do routing, so you as a proxy cannot interfere.
But when using TURN, you can add some logic in OpenSIPS to see if both the caller and callee are behind the same public IP and to skip rtpproxy in such a case. The logic is simple: after lookup(location) - after finding the IP of the callee device - , check the src IP of the call (where caller is located) with the IP of destination: if ( $si==$dd || $si==rd) => skip rtpproxy Regards, Bogdan Roberto Ovani wrote: > Hello, > I am in front of the following scenario > > - 2 clients in the same LAN (behind NAT) (Sjphone1 and sjphone2) > > - OPENSIPS on a public ip with installed : > a) stun support (module stun, primary_ip and alternate_ip, etc...) > b) turn solution (module nathelper + rtpproxy, rtpproxy_sock, etc....) > > I need to make the clients talk NOT PASSING through RTPPROXY, but > talking something-like peer-to-peer. > Every client has THE SAME PUBLIC IP, and they are NOT behind FULL NAT, > so somehow they can talk in p2p mode..... > > Has anyone some code as example ? ? > > Roberto > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- Bogdan-Andrei Iancu www.voice-system.ro _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users