LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 11-07-2009, 10:12 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 717
Thanked: 0
VOIP and opening ports


[Log in to get rid of this advertisement]
Hi,

I have recently bought a IP/PABX system with one FXO and one FXS port. I intend to install this on a remote site with a public but dynamic IP (can be resolved via dyndns though) and make calls via clients that are NATTed (inside a home router). I would like to seek advice on the port opening and the recommended settings. I have been reading a lot on VOIP and I am getting feedback that SIP calls are difficult to establish on a NATTed environment. Hope you can help me on the following questions:

1.) SIP port 5060 UDP?
2.) RTP ports - what range should I open for this? I see some use 10000-20000 UDP
3.) STUN server - Is this something that needs to be configured?

How can I ensure that the other party can hear the audio just like a regular telephone? Is it really impossible to do if the client is behind a router in which it is using a Private IP Address?

What other network configurations needs to be done?

Thanks and Regards,
Don
macos depam is offline     Reply With Quote
Old 11-07-2009, 11:06 AM   #2
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
Do you want that your customers use VOIP software and connect to IP-PABX?
linux nimnull22 is offline     Reply With Quote
Old 11-07-2009, 01:30 PM   #3
depam
Member
 
Registered: Sep 2005
Posts: 717
Thanked: 0

Original Poster
Yes. If possible I want flexibility of clients to connect to IP PABX via IP phone whether or not they are using public IP or behind a NAT router. Thanks.
macos depam is offline     Reply With Quote
Old 11-07-2009, 01:48 PM   #4
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
But can your IP-PABX handle connections like this. It has something like SIP server inside. I would suggest to do a test: take switch get one SIP phone connect phone and your IP-PABX to switch and try to call.

I think there is a manual for this IP-PABX where said what ports should be used, or what kind of SIP software it has.
linux nimnull22 is offline     Reply With Quote
Old 11-07-2009, 08:36 PM   #5
depam
Member
 
Registered: Sep 2005
Posts: 717
Thanked: 0

Original Poster
HI nimnull22,

The IP/PABX is based on Asterisk. The IP/PABX device is actually IP04 which has one FXS and one FXO port. I have not receive the device yet but will try. I am just worried on the NAT issue if there is.
macos depam is offline     Reply With Quote
Old 11-07-2009, 09:12 PM   #6
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
Yes, there will be some difficulties, but there is many solutions.
Good page, may be you've seen it: http://www.voip-info.org/wiki/view/NAT+and+VOIP

I've used linphone with STUN under at least 2 NAT - it works.

Last edited by nimnull22; 11-07-2009 at 09:25 PM..
linux nimnull22 is offline     Reply With Quote
Old 11-07-2009, 09:21 PM   #7
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
Quote:
Originally Posted by depam View Post
I intend to install this on a remote site with a public but dynamic IP (can be resolved via dyndns though)
Can IP changes during a phone call?

Last edited by nimnull22; 11-07-2009 at 09:45 PM..
linux nimnull22 is offline     Reply With Quote
Old 11-07-2009, 11:17 PM   #8
depam
Member
 
Registered: Sep 2005
Posts: 717
Thanked: 0

Original Poster
The IP will only be changed once you reboot the modem and the router. After the reboot, my router will update dyndns.org with the new IP address. I will set the IP of the asterisk to resolve to my host in dyndns.org so it will know the IP address. What concerns me is the client that will connect to this server. Can they do a NAT traversal so that the asterisk will know where to forward the port?
macos depam is offline     Reply With Quote
Old 11-07-2009, 11:39 PM   #9
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
Good page, may be you've seen it: http://www.voip-info.org/wiki/view/NAT+and+VOIP

I've used linphone with STUN through at least 2 NAT - it works.
linux nimnull22 is offline     Reply With Quote
Old 11-08-2009, 09:48 AM   #10
depam
Member
 
Registered: Sep 2005
Posts: 717
Thanked: 0

Original Poster
Hi nimnull22,

One more question. Is the STUN Server something I should setup?
macos depam is offline     Reply With Quote
Old 11-08-2009, 10:32 AM   #11
nimnull22
Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1
Posts: 259
Thanked: 15
Quote:
Originally Posted by depam View Post
Hi nimnull22,

One more question. Is the STUN Server something I should setup?
No doubt, and for the testing purpose on THE SAME computer where Asterisk will be.

If you need help with testing, I can call. Have lots of free time.
linux nimnull22 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem opening ports - ports appear open, but do not work. computer_freak_8 Linux - Software 10 09-20-2008 10:39 PM
What ports do I need to open for Asterisk VOIP? depam Linux - Software 1 10-05-2006 11:48 PM
Opening ports? skumaryermal Linux - Newbie 1 09-28-2006 02:36 PM
Opening Ports Astral_Nomad Mandriva 4 12-09-2005 01:17 PM
Opening ports lunke Linux - Security 10 06-07-2005 04:04 AM


All times are GMT -5. The time now is 04:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration