Yesterday I’ve installed and have been configuring FreePBX.
Has anyone gotten a SIP trunk to work from Plivo?
They have a tutorial, however, after doing what is said in the documentation (the forum won’t let me post a link to it), the SIP does not show up under registered.
When I fill in the registration flag in the format of username:password@uri, it does show up as a registration but it is stuck at Request Sent.
Not sure about Plivo specifically, but I can tell you that 90% of SIP issues tend to be network issues. I’m not sure which documentation you followed, but please take a look at this one and see if you can at least eliminate the network side of things: https://wiki.freepbx.org/display/FPG/NAT+Configuration+FreePBX+12
I’m not sure what to tell you then. Your best bet is to reach out to Plivo support and see if they can help you. Other than that, you can try to read the SIP header requests and responses to see if everything is following the SIP registration flow. That will require a deeper understanding of how the SIP protocol works.
It does not, it only has one network card, but I did find a different issue, please see the other comment. (I don’t want to post it twice, that would clutter things up)
Your Outbound Route does not have a pattern that matches 316XXXXXXX. Possibly, it is expecting 1316XXXXXXX, or it may just be incorrect. I believe that Plivo expects an initial 1 on US calls, so if you want to dial 316XXXXXXX you need to rewrite the number in the Outbound Route or Trunk.
The 316 number is meant to be +316XXXXXXXX (as in a mobile (6) number from The Netherlands (31)).
I fixed the outgoing by changing the rule to all 11x X.
However, for incoming, I hear nothing on the phone. I also don’t see anything in the logs of an incoming call.
If you don’t see the incoming call in /var/log/asterisk/full, then you are either getting blocked by a firewall (possibly the Integrate Firewall in FreePBX) or your provider is not sending the call to the PBX in a way you can receive it (wrong address, wrong port).
First thing to check would be the inbound redirection from your border router.to the PBX. The specifics may vary slightly, but you need (at least) UDP 5060, UDP 5160, and UDP 10000-20000 redirected to your PBX from the border router.