[Serusers] NAT

xwang at cascotec.com xwang at cascotec.com
Thu Jul 21 20:06:13 CEST 2005


Using 'restricted cone NAT',
1. IP address must be the same from external hosts. In other words, PSTN
gateway must be on SER proxy.
2. using STUN might work too.

steven

-----Original Message-----
From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org]On
Behalf Of Sebastian Kühner
Sent: Thursday, July 21, 2005 10:36 AM
To: serusers at lists.iptel.org
Subject: Re: [Serusers] NAT


Hi!

I'm forwarding to the Gateway. I can forward it with a symmetrical cone nat
now,
too. But with a Port Restricted Cone NAT no... this is my last problem I
hope.

Here my routing:

if (isflagset(6)) {
    force_rtp_proxy();
    t_on_reply("2");
    append_hf("P-Behind-NAT: Yes\r\n");
    append_hf("P-hint: GATEWAY\r\n");
};

if (method=="INVITE") {
    record_route();
    setflag(1);
    if (uri=~"sip:00") {
        strip(3);
        prefix("xxxx");
        rewritehostport("xxx.xxx.xxx.xxx:5060");
    };
};

...

if (!t_relay()) {
    sl_reply_error();
    break;
};

...
onreply_route[2] {
    if (status=~"2[0-9][0-9]") {
        force_rport();
        fix_nated_contact();
        if (search("User-Agent: Cisco ATA.*")) {
            fix_nated_sdp("2");
        };
        force_rtp_proxy();
    };
}

Are there any flags to be set??

Thanks!

Sebastian




----- Original Message -----
From: <xwang at cascotec.com>
To: "Sebastian Kühner" <skuehner at veraza.com>
Sent: Thursday, July 21, 2005 1:36 PM
Subject: RE: [Serusers] NAT


> "A restricted cone NAT is one where all requests from the same internal IP
> address and port are mapped to the same external IP address and port.
Unlike
> a full cone NAT, an external host (with IP address X) can send a packet to
> the internal host only if the internal host had previously sent a packet
to
> IP address X"
>
> do you forward calls from SER proxy to Gateway or call to Gateway
directly?
>
> steven
>
> -----Original Message-----
> From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org]On
> Behalf Of Sebastian Kühner
> Sent: Thursday, July 21, 2005 8:14 AM
> To: serusers at lists.iptel.org
> Subject: [Serusers] NAT
>
>
> Hi!
>
> Another problem with NAT... I hope I will solve it soon!
>
> My rtpproxy is running and ser can connect to the rtpproxy. I can make
calls
> to users that are connected to the ser server behind a NAT (Restricted
Cone
> NAT and symmetrical NAT). That's working fine!!! Thanks for your help!!!
>
> But I have the problem that if I want to call to a Cisco PSTN-Gateway,
that
> I can establish the call... but I don't hear anything. The callee is
hearing
> me. What is the difference between an internal user and the Gatway?? The
> routing for Gateway and Users is almost equal (the only difference is the
> "P-hint: GATEWAY").
>
> And: I'm wondering why the communication is OK with a symmetrical NAT
> (Linksys) and WITHOUT rtpproxy. If I turn on the rtpproxy (with symetrical
> NAT) the voice stream of the Gateway isn't arriving anymore.
>
> Any ideas?
>
> Thanks!
>
> Sebastian
>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>


_______________________________________________
Serusers mailing list
serusers at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list