LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 11-07-2009, 09:12 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
VOIP and opening ports


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
 
Old 11-07-2009, 10:06 AM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Do you want that your customers use VOIP software and connect to IP-PABX?
 
Old 11-07-2009, 12:30 PM   #3
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
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.
 
Old 11-07-2009, 12:48 PM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
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.
 
Old 11-07-2009, 07:36 PM   #5
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
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.
 
Old 11-07-2009, 08:12 PM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
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 08:25 PM.
 
Old 11-07-2009, 08:21 PM   #7
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
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 08:45 PM.
 
Old 11-07-2009, 10:17 PM   #8
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
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?
 
Old 11-07-2009, 10:39 PM   #9
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
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.
 
Old 11-08-2009, 08:48 AM   #10
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
Hi nimnull22,

One more question. Is the STUN Server something I should setup?
 
Old 11-08-2009, 09:32 AM   #11
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
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.
 
  


Reply



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 09:39 PM
What ports do I need to open for Asterisk VOIP? depam Linux - Software 1 10-05-2006 10:48 PM
Opening ports? skumaryermal Linux - Newbie 1 09-28-2006 01:36 PM
Opening Ports Astral_Nomad Mandriva 4 12-09-2005 12:17 PM
Opening ports lunke Linux - Security 10 06-07-2005 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration