I have 2 SIP Trunks set up on my pbx (Version 2.11.0.11), one registers with a provider and one uses IP authentication rather than registering with the provider. So I have port 5060 and the RTP ports forwarded (specified in Asterisk SIP Settings) under ‘RTP Port Ranges’ to the pbx.
The provider that I register with works perfectly, however the other one has a weird problem. Basically if I ring it from my mobile and answer it I can hear myself on the mobile for a few seconds, and then it just goes silent. However if I say nothing when I answer the phone for a few seconds and then speak the call works two way. If it is in a queue or if the system answers it using a message before the call, there is perfect two-way audio. I am sort of baffled to be quite honest.
I tried a different provider that uses IP Authentication and I have the same problem.
Here are the settings for the provider I am having problems with:
–PEER Details:
type=friend
insecure=very
nat=yes
qualify=no
canreinvite=no
host=[IP Address of Provider’s SBC]
dtmfmode=rfc2833
context=from-trunk
disallow=all
allow=alaw&ulaw&gsm
It is your nat/router box misconfigured, they need to maintain all rtp connection without translation and without timeing out. Most can, some have “helper” functions (alg or some such nonesense name) that break everything, don’t use them.
Do you have a way to watch the traffic make it through the router/firewall successfully or is it getting blocked?
Verify you have your SIP External IP address set properly.
I have the SPI Firewall feature led disabled on the firewall.
I have tried disabling the firewall, but it made no difference.
The thing that is wierd is that if the call is sent to a message or IVR played by the pbx the call completes with 2 way audio. Only when it is answered do I have problems.