Skip to main content
ewhiteway
New Member
October 27, 2020
Question

Fortivoice with Twilio - quick guide

  • October 27, 2020
  • 1 reply
  • 6776 views

I just got my FV 6.4.0 working with Twilio sip trunks - was not easy so I thought I'd post the details here before I forget them:

 

Few notes: 

1. twilio treats a SIP trunk in and out as 2 separate items - takes a bit to get used to.

2. Twilio is very strict on number format (+1xxxxxxxx)

3. Demo accounts are not allowed to call from or to numbers that are not added to the system (real pain for testing - just pay the $20 to make the account real)

4. There is a debug section of the website that shows you any calling errors

 

 

My basic setup steps: (from memory  - please post updates and we can get this to a real instruction set)

 

1. setup twilio account - load $20 of real money (demo account has too many restrictions)

2. Setup twilio sip trunk (in twilio web site) - you'll get a URL    yourname.pstn.twilio.com

3. add new SIP trunk in FV - sip server is URL above, name a username and password up (put name in both user and Auth).

4. sip_trunk_default worked for me

5. Caller ID option - for testing use specified  +1area+number  (twilio only accepts +1 format)

6. standard reg and no outbound proxy

7. in twilio setup origination -  the URI should be  sip:username:password@IP:port   - the username and PW is from your FV sip trunk

8. you should now be able to make a test call in.  

9.  note numbers come in as 1area_number - so make sure your DID routing includes the 1

 

 

 

    1 reply

    nosinski
    New Member
    November 10, 2021

    Is this still working for you? I have set it up and it works 100% of the time for outgoing. Incoming is a problem. On the twilio origination page the "Make a test call" works but calling the number from any other phone to the trunk phone number does not. I have a ticket open with support but after a few back and forths we are still working on it.

    ewhiteway
    ewhitewayAuthor
    New Member
    November 10, 2021

    I got it to work, but went with voip.ms as they are more standard, and easier to secure.

     

    If your firewall is locked down, it could be blocking an inbound call from an IP that is not already connected.

     

    You can also do a PCAP at the phone system and see if the call is even making to your system.

     

    I'm doing some testing with Fortigate ALG and Fortivoice - so far Trunks are working (sherweb and voip.ms) - but phones are not.   I was thinking of testing with my Twilio account too.  If I get some time, I'll put in the test tmrw.

    ewhiteway
    ewhitewayAuthor
    New Member
    November 10, 2021

    I just added twilio to my test system.

     

    It's working fine on my test system (calling in and out).

     

    Check your FV that you have an inbound rule for that trunk and it takes the +1 format. ( I setup a default route for testing)