We are often asked "why I cannot hear peer side?" or "why we cannot hear each other?". In most scenarios, the root reason is firewall filtering audio stream or NAT (network address translation) blocking it. We can always find that some SIP devices, including SIP phones, SIP clients and VoIP gateways, are deployed behind a NAT and configured with private IP address.
Please follow below methods to fix the one-way audio problem.
If there is a firewall deployed in your VoIP network, for example Windows firewall, please try to shutdown it and make some test. If problem is resolved, that means you need ask administrator to configure firewall to enable miniSIPServer to be visited from public networks or private networks.
If your SIP phones/devices are deployed in a private network, mostly you need configure STUN (Simple Traversal of UDP through NATs) server to help your SIP devices to route packages, such as audio packages. Most SIP devices can support STUN protocol.
Below figure describes STUN configuration in microSIP. By default, we configure 'stun.minisipserver.com' as STUN server.
If your miniSIPServer is deployed with public address, you can use it as your STUN server too because it is embeded in miniSIPServer. Of course, you can also use our simple STUN server "stun.minisipserver.com".
By default, we suggest following STUN servers:
In another way, we can try to configure miniSIPServer to relay media streams for SIP phones. In local users' configurations, please click tab "Media services" and enable "Relay media stream" item:
Since all media streams will be sent to miniSIPServer if you have configured such "relay media stream" item for local users, it will be very heavy work-load to your server.
If miniSIPServer is behind a router and configured with private address, somethings more need to be confirmed or configured.
Please refer to below figure. miniSIPServer can have two SIP addresses. We can configure 'Main address' with the public address and 'Additional address' with the private address.
In this scenario, outsides public SIP phones can work with miniSIPServer's main public address and local SIP phones can work with miniSIPServer's additional private address.
The router need forward some ports to miniSIPServer, otherwise miniSIPServer cannot receive outsides packages. By default, router need forward following UDP ports:
If you are deploying SIP over TCP or TLS, you need forward TCP ports 5060 and 5061 too.
If the router has UPnP feature and has enabled it, you can configure miniSIPServer to request port mapping (forwarding) automatically. In miniSIPServer system configuration, please enable item "Enable UPnP to ask router to map ports".