[asterisk-users] RTP timeout if the asterisk box behind NAT

bilal ghayyad bilmar_gh at yahoo.com
Sun Feb 3 17:38:31 CST 2013


Dears;

I am facing a problem in disconnecting the calls, it is related to the rtptimeout (disconnecting if there is no RTP packets from both sides).

My Asterisk Box is behind NAT but there is a static real IP address at the ADSL router. We call from the Mobile to the PSTN analogue numbers which are connected to Asterisk Analogue card (the telephone lines are analoge), and then we dial the overseas number, so the asterisk is sending the call to a VoIP service provider which will route the call to the destination. Sometime the destination is connected while ringing !! And this is a problem from the SIP service provider route, then we hangup our mobile (as no one answering our call) but asterisk is not detecting the hangup (it is because the telephone lines are analoge and this problem is common in analoge lines that some hangup are not detected). In that case, the call will stay open and charging and this is a wrong.

This problem was not appearing when Asterisk machine was having static real IP address because I was enabling the rtptimeout paramters. But now as the asterisk box IP address is private and it is behind NATing then it is appearing even I enabled the (rtptimeout=50 and rtpholdtimeout=120).

What should I do?

Regards
Bilal



More information about the asterisk-users mailing list