This example and accompanying Bitbucket repository represents the various components required to setup a SalesForce (SF) CTI Call Centre demo.
To run this demo you will need:
-
A SalesForce developer account (please note this demo has not been tested in a production environment, so either user your developer sandbox if you have a production SalesForce account, or sign up for a free developer account here - https://developer.salesforce.com/signup)
-
A Live Assist installation environment including FCSDK
-
A webserver, either within your network or running locally (this demo assumes you're using a PHP server e.g. MAMP Pro)
-
A code editor e.g. sublimetext
-
A PSTN gateway, to route your SIP Outbound traffic from FCSDK. e.g. Twilio
Setup Instructions
SalesForce - Install the Demo Call Center Adapter provided by SalesForce:
- Login to your SF developer account at login.salesforce.com
- Install the Demo Call Center Adapter provided by SalesForce, by navigating here -https://login.salesforce.com/packaging/installPackage.apexp?p0=04t80000000tn5y
- Click the "Setup" link (top right)
- In the lhs sidebar expand Build -> Customize -> Call Center and select Call Centers
- You should see the Demo Call Center Adpater installed, select it and click "Manage Users" button and remove yourself / users
SalesForce - Import your own Call Center Adapter
- Click the "Setup" link (top right)
- In the lhs sidebar expand Build -> Customize -> Call Center and select Call Centers
- Click the "Import" and import the callCenterDefnition.xml packaged in this repository and embedded below.
- Select your new Call Center and click "Manage Users" button and add yourself / your users.
SalesForce - Create your VisualForce SoftPhone Interface
- Click the "Setup" link (top right)
- In the lhs sidebar expand Build -> Develop -> VisualForce Pages and click the "New" button
- Open the callcenter.html file in this repo. Be sure to change references to https://richard-mbp.cafex.com to point to your session provisioning PHP (MAMP) server.
- In the embedded code editor, in SF, paste in the apex:page code from the callcenter.html file in this repo, name it callcenter and click save.
MAMP PRO / FCSDK Setup
- You need to deploy the session.php and call.html files in this repo to your MAMP PRO, prferably in a /salesforcecdflab folder.
- You need to setup your MAMP Pro server for https / ssl trafic, using self signed certs feature of MAMP PRO.
- Test you can get a sessiion token by navigating to the session.php script in your browser.
FCSDK - CM / PSTN SIP Outbound Gateway
- You need to set an outbound sip address in the FCSDK Web Plugin Framework under Gateway -> SIP Global Configuration -> Outbound SIP Servers
- To route calls correctly, you'll need to edit the call number handling code in call.html to call valid SIP url strings for your outbound domain.
Useful Links
CafeX Bitbucket Repository https://bitbucket.org/cafexsup/salesforcecdf
SF Open CTI Adapter https://developer.salesforce.com/page/Open_CTI
SF Open CTI Developer Guide https://developer.salesforce.com/docs/atlas.en-us.api_cti.meta/api_cti/
Comments
0 comments
Please sign in to leave a comment.