Hello there!!!
I am a newbie to asterisk and really looking forward for some community support so thanks in advance!!
So I’ve already set-up asterisk behind my NAT where I can easily situate calls to people on a local network by editing the pjsip.conf and extensions.conf files.
Now I hosting my asterisk server on a VPS using hostinger, I followed similar steps!! My users easily gets registered using the Softphone the calls are getting simulated but there is no audio!!! I wonder why???
Is there any other module that I have to setup for rtp voice streaming or external ip ??? I don’t really know ……
Can someone plz help me out here… any efforts will be really appreciated!!!
Doesn’t look bad for beginning.
Since propably your Users are behind NAT and your VPS isn’t, in my opinion the most important thing for you is adding
direct_media = no
to you endpoints. Otherwise your endpoints may try to send audio directly to each other, which will propably not work.
What I would also try is to add to endpoints
rtp_keepalive=1
which will send rtp packets right from the beginning, which helped me a lot in NAT scenarios.
And finally another important option for NAT at endpoints is
force_rport=yes
as it forces Asterisk to send packets back to the port where it came from and not to the port mentioned in the SIP messages, which usually can be different when mapped by a NAT router.
Also make sure to check firewall rules of your VPS. Just for example, I saw very often that lot of distros come with activated firewall services like firewalld which could also prevent the flow of audio packets.
This also causes it to take the IP address from the IP layer, not the application layer. Typically if you need this, you also need symmetric_media, and possibly rewrite_contact.
I had problems with enabling TLS and CSF firewall (could be specific to CSF).
I’d suggest to set up port knocking if your users have dynamic ip addresses.
Microsip client supports this.