What will you learn in this article :
After reading the step-by-step instructions you'll be able to integrate Twilio as BYOC into your Genesys PureCloud and start making Outbound / receive Inbound calls via Genesys PureCloud.
Preface :
This post might be helpful for those who are planning to test out Genesys PureCloud as your future Contact Centre solution. The post is created in Fall 2018 so if you're reading in 2019+, the UI/UX as well as some approaches might have changed. However I hope the general structure and steps you will need to go through will remain the same.
Genesys acquired Interactive Intelligence in 2016 and as the result of the acquisition a new product was added into Genesys Portfolio : Genesys PureCloud (a cloud base contact centre omni-channel solution with a great UI/UX inherited from Interactive Intelligence). A challenge that a customer will face though is that Genesys PureCloud is available only with BYOC approach (Bring Your Own Carrier). That was the same challenge with Interactive Intelligence software back in the days prior the acquisition. So keep in mind that all the risks and administration related to carriers thus call quality are on your (customer's) side.
I did some investigation on what kind of carrier should help us to run the test as soon and easy as possible and decided to go with Twilio - an API based PaaS for telecommunications. I had some experience and worked Twilio before. I knew that the integration should not take too much time, but that was not the case... That's the reason I decided to aggregate all the steps I went through and save the time for the next implementator.
Twilio and Genesys have a broad documentation ressources : Twilio Doc URL and Genesys Articles but none of the articles is actually describing the process of BYOC with Twilio (at least at the time of this post). You'll find some articles about virtual machines etc., but that's not what is needed to integrate with API based PaaS platform.
I think you've already tried some approaches and this post will help you to get things done!
-----
Instructions :
Here is short instructions on how to make things running with Genesys PureCloud and Twilio :
Prerequisites :
- Running PureCloud instance (we were using Frankfurt's node as we ran our test for EMEA region). Your URL to access PureCloud should look similar : https://apps.mypurecloud.de/
- You have users and test org setup ready in PureCloud.
- Active Twilio Account. Create one here if you don't yet have one: Twilio Website.
- Purchase telephone numbers in Twilio that you will run your tests with. You purchase numbers via Twilio Phone Numbers. Depending on the country you may need some documents to be uploaded prior the number gets activated.
Customizations required on Twilio side :
Create a new SIP-trunk via Trunks page.
Set up origination URI.
Go to Twilio Console : Elastic SIP Trunking -> Select the Trunk you've created -> Origination.
Create Origination URI :
Origination SIP URI : sip:antontest.byoc.mypurecloud.de
Priority : 10
Weight : 10
Enabled : Checked.
Click on "Save" or "Update" if you're updating the Trunk settings.
On the same page you can see "Make a test call" section - this one you may use to test your inbound calls in Genesys PureCloud once we're done with the setup.
Set up termination URI.
Go to Twilio Console : Elastic SIP Trunking -> Select the Trunk you've created -> Termination.
Set up Termination SIP UI, i.e. : antontermination.pstn.twilio.com (any valid name)
Within the Authentification section define IP control list :
You can find the full list of IP addresses to use for your region here.
For all the numbers you've purchased you'll need to configure Voice and Fax and select the SIP Trunk you've created.
Genesys PureCloud side :
Check your Sites Setup : URL.
Create a New Site :
Site name : your company name
Description : optional
Location : in our case it was Default PCV Location. Consult your Genesys Manager to double check on which one is suitable for your setup.
Phone Edge Assignments : Use "PureCloud Voice - AWS" for both Primary Sites and Secondary Sites.
Save Site Configuration.
Go into your newly created Site and choose the tab "Outbound Routes"
Click on "+ New Outbound Route"
Outbound Route Name : any name you prefer
Description : optional
Classification : optional
Distribution Pattern : Sequential
State : Enabled
Create External Trunks :
Create an external Trunk in Genesys PureCloud : URL.
Click on "Create New" within External Trunks tab.
External Trunk name : any name you prefer
Type : BYOC Carrier. You'll need to contact your Genesys PureCloud Engineer to activate "PureCloud BYOC Twilio" type for you then, they already have it predefined.
Set the status to "Operational".

Change Trunk State to "In-Service" if not yet applied.
Inbound / Termination section.
Set SIP Termination URI, i.e. :
antontest.byoc.mypurecloud.de (byoc.mypurecloud.de stays for Frankfurt node)
Outbound.
Set up SIP Servers or Proxies :
Add "antontermination.pstn.twilio.com", ignore Port
You can also Ignore "Digest Authentication" part - it's used to authenticate your outbound call.
"Calling Section" :
Address is the CLID (the number you want to display on the phone). You can put the number you've previously purchased with Twilio for example.
Name : Optional
Address Override method
SIP Access Control.
You need to put the IP Addresses that Twilio provides : https://www.twilio.com/console/sip-trunking/your-network. Double check the final list with your Genesys Engineer. Allow those IP addresses.
Adresses I've used are :
54.172.60.0/30
54.244.51.0/30
54.171.127.192/30
35.156.191.128/30
54.169.127.128/30
54.252.254.64/30
177.71.206.192/30
54.65.63.192/30
The rest of the settings you don't need to configure for now as what we want to achieve with this test is if the inbound calls to the numbers you have are routed to Genesys PureCloud and if the Outbound calls from Genesys PureCloud are possible to initiate as well.
If you want to change your recording parameters, you can do it in Media Tab in the bottom of the page.
Click "Save external Trunk".
Go to Telephony/Sites/Edit Site/Outbound Routes and add your Outbound Route you've just created (on the right of the screen). Save Outbound Route.
In Telephony/DID numbers put your Twilio number in the following format :
+12342323423 (DID Start) -> +124323432234(DID End) and click on plus
Associate the number with a User/Group/Inbound Call Flow. Select where you want to receive an inbound call. For the User create a WebRTC phone, go to User Profile and assign the number. This instructions are available in public documentation so I won't describe it in details here.
------
And now run your first test!
Hope it works.
In case you have any question or comment, please let me know.
All the best with your future implementation,
Anton Pashchenko.


Comments
Post a Comment