|
Posted by Gilles Ganault on April 15, 2007, 7:22 am
If you were Registered and logged in, you could reply and use other advanced thread options
Hi
I was wondering: How do SIP devices open the ports they need for RTP?
I'm about to send an IP phone to someone who doesn't know much about
things computers, so I need to find out if his router can handle
SIP/RTP automagically, or if he'll need to map incoming ports to this
device.
Is there a way to check this easily? Some special words to look for in
the router's documentation ("UPnP?")? Some utility I can run from the
outside or that he can download and run on his computer to check if
his router will open ports dynamically?
Thank you.
|

| |
Posted by Wolfgang S. Rupprecht on April 15, 2007, 4:03 pm
If you were Registered and logged in, you could reply and use other advanced thread options
> I was wondering: How do SIP devices open the ports they need for RTP?
Ideally the phones would be put in front of any firewalls or NAT
translations. That's how SIP and RTP are meant to be run and doing it
any other way is a bit of an uphill battle.
If you do need to run SIP and RTP behind a firewall or NAT box you'll
need to read up on "stun" and configure the phones to use one. If
things are working correctly stun should take care of opening up
any stateful firewall and working around any NAT translations.
http://www.voip-info.org/wiki-STUN
-wolfgang
--
Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/
|
|
Posted by Gilles Ganault on April 16, 2007, 7:15 pm
If you were Registered and logged in, you could reply and use other advanced thread options On Sun, 15 Apr 2007 13:03:14 -0700, "Wolfgang S. Rupprecht"
>If you do need to run SIP and RTP behind a firewall or NAT box you'll
>need to read up on "stun" and configure the phones to use one. If
>things are working correctly stun should take care of opening up
>any stateful firewall and working around any NAT translations.
Thanks guys for the tip. I though STUN was simply a way for an SIP
device in a private LAN to learn its public IP address by connecting
out to a STUN server on the Net, but I guess that, when running in
STUN mode, an SIP device keeps sending packets out to keep some ports
open on the router.
In that case, how can the remote SIP device use those open ports? Is
an open UDP port available for use by any remote host, even if it's
not the STUN server that was used to open them in the first place?
I'll read up on STUN. Thank you.
|
|
Posted by Wolfgang S. Rupprecht on April 16, 2007, 9:06 pm
If you were Registered and logged in, you could reply and use other advanced thread options
> In that case, how can the remote SIP device use those open ports? Is
> an open UDP port available for use by any remote host, even if it's
> not the STUN server that was used to open them in the first place?
I believe the STUN hack works as such: Initially both sides talk to
the stun server and it relays the packets. After a while the two
endpoints try to talk to each other directly using the same ports that
they used when talking indirectly via the stun server. The act of the
local phone sending a UDP packet out to the remote phone through the
local stateful firewall should cause the firewall to create a second
opening, this time for the remote phone. Since both sides are doing
the same thing, both firewalls should end up having pass rules
inserted for packets from both the stun server and for the direct UDP
link to the other side. (This is just from my cursory reading, I may
have some of the details wrong. Corrections welcome.)
-wolfgang
--
Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/
|
|
Posted by Gilles Ganault on April 18, 2007, 6:58 am
If you were Registered and logged in, you could reply and use other advanced thread options On Mon, 16 Apr 2007 18:06:24 -0700, "Wolfgang S. Rupprecht"
>I believe the STUN hack works as such: Initially both sides talk to
>the stun server and it relays the packets.
Thanks for the explanation, but most calls are made from two phones
that don't use the same STUN server, if at all. In that case, I wonder
how the STUN trick works.
I'll see what documentation I can gather about STUN, UPnP and possibly
other tricks SIP phones can use to open RTP ports dynamically.
|
| Similar Threads | Posted | | VoIP Devices | August 25, 2005, 8:41 am |
| VoIP Devices | September 9, 2005, 7:53 am |
| VoIP Devices | September 12, 2005, 7:26 am |
| Where come these perfect voip devices? | September 5, 2005, 7:28 am |
| Where come these perfect voip devices? | September 9, 2005, 7:55 am |
| Where come these perfect voip devices? | September 12, 2005, 7:25 am |
| China Roby VoIP devices | November 17, 2005, 2:44 am |
| RE: How do I Punch down new phone lines on the 66 blocks | May 19, 2006, 3:57 am |
| Vonage ATA devices | April 4, 2004, 11:53 pm |
| Re: Vonage ATA devices | April 5, 2004, 6:01 am |
|
|