Jimmy,
This should do the trick. This code uses AVPOPS to determine if the source and destination IP addresses are the same.
avp_write("$ruri/domain", "i:33"); if (avp_check("i:33", "eq/$src_ip/i")) { # RTP proxy is not needed because caller # and caller are behind the same NAT # so set a flag or something to indicate that # mediaproxy/rtpproxy are not needed }; avp_delete("i:33");
Regards, Paul
On Tue, 15 Mar 2005 10:04:08 +0800, jimmy jimmy_huang@uni.com.tw wrote:
-----Original Message----- From: jimmy [mailto:jimmy_huang@uni.com.tw] Sent: Tuesday, March 15, 2005 10:01 AM To: 'rrisco@millicom.net.pe' Subject: RE: [Serusers] calls between UA´s behind same NAT using nathelper/rtpproxy
Hi Rafael: It seems has two way to meet your requirement (1)use external script http://lists.iptel.org/pipermail/serusers/2005-February/015477.html (2)use avpops module http://www.voice-system.ro/docs/avpops/ Hope it's useful ...
Jimmy
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Rafael J. Risco G.V. Sent: Tuesday, March 15, 2005 2:22 AM To: serusers@lists.iptel.org Subject: [Serusers] calls between UA´s behind same NAT using nathelper/rtpproxy
Hi I would like to know if its possible to comunicate SIP Clients betwen them when they are behind the same nat, I am using Nathelper/RTPProxy...
thanks Rafael
--
rrgv
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers