I have Asterisk Server with Static IP no NAT (Location A)
I have a 3rd party company (Location B) connecting to my Asterisk Server.
I have my endpoint (Location C)
The 3rd party company can connect to my server and can see the ringing of the phone but they can’t hear me at location C. I can hear them and respond but they cant hear me.
I believe their endpoints are behind a NAT and I have no control over their network. Are there any solution I can provide them. I been reading on STUN, TURN and ICE but not sure what would be best? Is it included with Asterisk? Maybe there is something on their router they need on like ALG?
There are a few setting you can add on the Asterisk side like : setting NAT support on peer defintion, define the usage of stun server on the remote endpoints, but also it is needed the router on the remote network can deal with NAT
Hi anoluck,
Solutions on Asterisk side might help you when your Asterisk server is located behind NAT.
However, in your case endpoints are behind NAT.
To eliminate the issue, you should refer to the network administrator responsible for location C and perform one of the following actions depending on their equipment and security policies:
Enable SIP ALG on their router / firewall
Open UDP ports for RTP traffic on their router / firewall (b default,this is the range 10000…20000)
Enable STUN or ICE on their endpoints as suggested above.
If the endpoints are not NAT aware you may need to force the use of comedia, and force_rport, in your Asterisk NAT settings. The first causes Asterisk to ignore the IP address given in the SDP and learn the true IP address from incoming traffic to the port that it has nominated. force_rport is probably not necessary, if the call is setting up and it is just the media that is going wrong, as it only relates to signalling.
NB you must never set the equivalent of comedia on both ends, as you will have a stalemate, with both sides waiting for the other to send first.
Thanks for the details. I figure it has to do with the endpoint but I have a question. I thought the problem would be in Location B and not C?
Location C can hear and respond fine but Location B cant hear anything. Wouldn’t the problem be at Location B with NAT issue?
It allows media to flow directly between endpoints, which may or may not work depending on network layout. This reduces the load on Asterisk and the bandwidth of the system running Asterisk.