6 Replies Latest reply on Jun 6, 2018 2:08 PM by howarda

    Has anyone setup a sip trunk to Twilio?

    ncmurf00 New Member

      this should be pretty but I can't seem to get a link.

      have the user and password set and the ip security verified.

       

      anyone successful in getting online with them?

        • Re: Has anyone setup a sip trunk to Twilio?
          jay Employee

          Jeff, I haven't personally heard of anyone working with that particular provider, but that doesn't mean someone hasn't done it. Are you having issues getting the trunk registered or making calls? Thanks

           

          Jay

          • Re: Has anyone setup a sip trunk to Twilio?
            nlepore New Member

            I'm trying to do this as well, but their documentation doesn't really help.

             

            Did you end up getting this working?

             

            -Nick-

              • Re: Has anyone setup a sip trunk to Twilio?
                ncmurf00 New Member

                Hey Nick,

                I did... it took a lot of trial and error.

                 

                Are you doing one or multiple trunks to the Adtran?

                 

                Thanks,

                Jeff

                  • Re: Has anyone setup a sip trunk to Twilio?
                    nlepore New Member

                    That's great new, Jeff!

                     

                    I'll be doing multiple providers, but only one of which would be Twilio (to start at least)

                     

                    Would you mind sharing your config on how you got it working?

                     

                    Thanks!

                     

                    -Nick-

                      • Re: Has anyone setup a sip trunk to Twilio?
                        howarda New Member

                        I did this recently with a trial account. I only configured for outbound LD unencrypted, so there may be more to your config. The trial account only allows calls to and from verified numbers and both dnis and ani must be in E.164 format.  Also they don't register the trunk.  You create a custom URI to connect to  custom.pstn.twilio.com and a credential.

                         

                        Here's how I converted 10 digits to E.164

                        match dnis "$" substitute "0111$"

                        match ani "$" substitute "0111$"

                         

                        voice international-prefix abbreviated

                        sip grammar from user international

                         

                        voice trunk T0X type sip

                          match dnis "$" substitute "0111$"

                          match ani "$" substitute "0111$"

                          sip-server primary custom.pstn.twilio.com

                          outbound-proxy primary custom.pstn.twilio.com

                          domain "unisip.pstn.twilio.com"

                          codec-list TRUNK both

                          authentication username "custom" password encrypted 12345

                          • Re: Has anyone setup a sip trunk to Twilio?
                            howarda New Member

                            I also have the TLS sip trunk for Twilio functional.  I created a ca profile and imported the thawte Premium Server CA. Twilio says you need all the Thawte and Digicert CAs, but I had trouble when I added more than a few certs.

                             

                            crypto ca profile "Twilio"

                             

                             

                             

                            tls-profile Twilio

                              ca-profile Twilio

                              allow-self-signed-cert

                              secure-ciphersuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384

                              secure-ciphersuite TLS_DHE_RSA_WITH_AES_256_CBC_SHA

                              secure-ciphersuite TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384

                              secure-ciphersuite TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384

                              secure-ciphersuite TLS_RSA_WITH_AES_256_CBC_SHA

                              secure-ciphersuite TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA

                              secure-ciphersuite TLS_RSA_WITH_3DES_EDE_CBC_SHA

                              secure-ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

                              secure-ciphersuite TLS_DHE_RSA_WITH_AES_128_CBC_SHA

                              secure-ciphersuite TLS_RSA_WITH_AES_128_CBC_SHA

                              secure-ciphersuite SSL_DES_192_EDE3_CBC_WITH_MD5

                             

                            srtp-profile Twilio

                              crypto-suite AES_CM_128_HMAC_SHA1_80

                            voice international-prefix abbreviated

                             

                            voice trunk T03 type sip

                              description "Twilio"

                              match dnis "$" substitute "0111$"

                              match ani "$" substitute "0111$"

                              sip-server primary custom.pstn.twilio.com tls Twilio 5061 srv sips tcp

                              srtp tls-optional Twilio

                              domain "custom.pstn.twilio.com"

                              trust-domain

                              codec-list TRUNK both

                              authentication username "custom" password encrypted 12345

                             

                            sip grammar from user international

                             

                            crypto ca certificate chain "Twilio"

                              certificate ca 36122296c5e338a520a1d25f4cd70954

                            -----BEGIN CERTIFICATE-----

                            MIIDNjCCAp+gAwIBAgIQNhIilsXjOKUgodJfTNcJVDANBgkqhkiG9w0BAQUFADCB

                            zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ

                            Q2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UE

                            CxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhh

                            d3RlIFByZW1pdW0gU2VydmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNl

                            cnZlckB0aGF3dGUuY29tMB4XDTk2MDgwMTAwMDAwMFoXDTIxMDEwMTIzNTk1OVow

                            gc4xCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcT

                            CUNhcGUgVG93bjEdMBsGA1UEChMUVGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNV

                            BAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2aXNpb24xITAfBgNVBAMTGFRo

                            YXd0ZSBQcmVtaXVtIFNlcnZlciBDQTEoMCYGCSqGSIb3DQEJARYZcHJlbWl1bS1z

                            ZXJ2ZXJAdGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2

                            aovXwlue2oFBYo847kkEVdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560

                            ZXUCTe/LCaIhUdib0GfQug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j

                            +ao6hnO2RlNYyIkFvYMRuHM/qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/

                            BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQBlkKyID1bZ5jA01CbH0FDxkt5r1DmI

                            CSLGpmODA/eZd9iy5Ri4XWPz1HP7bJyZePFLeH0ZJMMrAoT4vCLZiiLXoPxx7JGH

                            IPG47LHlVYCsPVLIOQ7C8MAFT9aCdYy9X9LcdpoFEsmvcsPcJX6kTY4XpeCHf+Ga

                            WuFg3GQjPEIuTQ==

                            -----END CERTIFICATE-----

                            quit