[asterisk-users] Re: NAT: RTP Path Optimization
Patrick Cervicek
patrick at cervicek.de
Mon Jan 29 07:52:47 MST 2007
Benny Amorsen schrieb:
>>>>>>"PC" == Patrick Cervicek <patrick at cervicek.de> writes:
>
>
> PC> http://lisas.de/~patrick/temp/rtp-optimierung.png Everything is
> PC> working fine in my Setup, but I want Extern1 to talk to Extern2
> PC> directly whitout going over Asterisk as the uplink is slow.
>
> PC> When I set for Extern1/2 canreinvite=yes it works, but
> PC> "Intern-2-Extern" doesn't work because Asteisk gives out the
> PC> private IP-Adresses of Int1/2
>
> Asterisk can't give out a public IP-address for Int1/2. Where
> would it get one from?
Asterisk gives out his own public adress and stays in the Media-Path
between internal and external Phones. This avoids NAT-Problems.
> PC> I defined localnet=10.0.0.0/255.0.0.0 (Private LAN) but this
> PC> doesn't help.
>
> PC> Ideas, how to handle "Extern-2-Extern" (RTP bypass Asterisk)? Do I
> PC> have to adjust "nat" somwhere?
>
> Set canreinvite to no for Int1/2.
But then all RTP Traffic of my internal phones will go over Asterisk. I
want RTP to go "Peer-to-Peer".
==> "Intern-2-Intern" and "Extern-to-Extern" should go P2P and
"Intern-2-Extern" should go over Asterisk, see picture
More information about the asterisk-users
mailing list