FreePBX | Register | Issues | Wiki | Portal | Support

How to allow sip calls with Allow SIP Guests and Allow Anonymous Inbound SIP Calls disable

elastix
firewall
configuration
asterisk
Tags: #<Tag:0x00007fb90de3aa80> #<Tag:0x00007fb90de3a670> #<Tag:0x00007fb90de39bd0> #<Tag:0x00007fb90de393d8>

(Ariel Pena) #1

I had to disable allow anonymous sip and disable guess in my sip trunk settings in free PBX\asterisk due to security issues and now my calls are not reaching my sip trunk. Are there any setting I need to do on the twilio side or the Astrisk side to be able to make a connection.


(Tom Ray) #2

Twilio sends calls from five different proxies. If you have Chan_PJSIP trunk, all five IPs have to be in the match list. If you are using Chan_SIP, you have to make a trunk for each of the IPs since Chan_SIP only supports 1 IP per host.

Twilio’s documentation is very specific on using 5 IPs to send calls from.


(Ariel Pena) #3

were do I configure the ip for the trunk this is what I have for my setting

host=arielcucm.pstn.twilio.com
username=ZirXXXXXXXXXXXXXX
secret=ElXXXXXXXXXXXX
type=peer
nat=yes

Do I add the ip address in one of these fileds?


(Ariel Pena) #4

I got it. I create a sip trunks for each twilio IP as

host=X.X.X.X
type=peer

Thanks!