Solved

Asterisk PBX call transmit audio stops working after about 5 minutes

Posted on 2008-06-24
10
417 Views
Last Modified: 2013-11-12
The call connects just fine and after about 5 minutes (sometimes less) it will stop tranmitting your audio. You can receive audio just fine. The trunk is from VIAtalk.com
0
Comment
Question by:mspurling
  • 5
  • 4
10 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 21859904
Is there any NAT device between the asterisk box and the phone or viatalk?
0
 

Author Comment

by:mspurling
ID: 21860065
I have tried on both sides of the Firewall and it does it. They are Linksys pap2t-na adapters.
0
 
LVL 36

Expert Comment

by:grblades
ID: 21860105
What firewall do you have?
What ports have you forwarded through on the firewall so far?
0
 

Author Comment

by:mspurling
ID: 21860161
Ok, the PBX side is not behind a firewall. It is on the public side of the internet completely open (won't be permantly but now it is) The Linksys devices have also been on the public side on the internet (same switch no hops) and behind firewalls (two hosp away) but have not opened any ports on those firewalls. Do I need to since it works sometimes?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 36

Expert Comment

by:grblades
ID: 21860284
Ok I'll assume asterisk is connected directly to the internet with no firewall inbetween.
If the linksys devices are behind a firewall then you should really forward the rtp ports configured on the linksys. Since different ports are used in each direction the firewall can think the traffic has stopped since their are no replies and close the connection. Forwarding the ports signals that new udp connections are permitted so it wont look for replies.

10pm here in the uk now. I will reply to any furthur posts tomorrow.
0
 

Author Comment

by:mspurling
ID: 21864686
Ok, what are the RTP port ranges that need to be forwarded? Are they?
SIP signaling: Ports 5060 to 5070
RTP audio: Ports 8766 to 35000
What do you think about an IP Tunnel? I think I read somewhere that you can do that between the linksys terminal adapter and directly with Asterisk but I can't seem to find that now.
0
 
LVL 36

Accepted Solution

by:
grblades earned 500 total points
ID: 21864766
Its the rtp audio UDP ports 8766 to 35000 which need to be forwarded. You can specify a much smaller port range on the device first if you wish as it doesnt need to be that big. 10 ports should be sufficient.

You shouldnt need to worry about forwarded the SIP ports. Just set the registry expiry time small (5 minutes for example) so that the firewall doesnt close the connection thinking it is inactive.

I wouldnt bother trying to use a tunnel directly between the equipment. Its too complex.
You could use a hardware firewall such as a Cisco ASA5505 and smaller devices or a cisco router at the other sites and have a VPN connection but that should really be as a last resort.
0
 

Author Comment

by:mspurling
ID: 21899816
I adjusted this and it didn't seem to make a difference. Any other ideas? How does one setup a tunnel with in the terminal adapter and the pbx?
0
 
LVL 36

Expert Comment

by:grblades
ID: 21903030
No sorry no other ideas. I wouldnt try and use a software VPN on the asterisk box. Far too many issues with NAT and firewalls that unless you know exactly what you are doing and where each layer sits in the networking stack you will probably cause more problems.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now