cardinal

Telephony

Place and take calls from the desk through Twilio or Exotel, and keep a call log.

The CRM calls through Twilio or Exotel. Twilio rings in the browser or on the agent's phone. Exotel always rings the agent's own phone. Every call, from either provider or logged by hand, is a CRM Call Log.

Find the setup in the sidebar under Telephony: Telephony Agents, Twilio Settings and Exotel Settings.

Set up Twilio

Open Twilio Settings. Fill Account SID and Auth Token, tick Enabled and save. A wrong SID or token is refused with "Invalid Account SID or Auth Token."

On save the CRM makes an API key, and finds or makes the TwiML application named in App Name with this site's voice webhook. Twilio Apps lists the account's applications.

In Twilio's console, point your Twilio number's incoming call webhook at https://HOST/api/crm/twilio-incoming.

Create a Telephony Agent for each user who calls. Set Twilio Number to the number they call from, and Device to Computer (rings in the browser) or Phone (rings their Mobile No.).

Tick Record Calls to record every answered call.

Set up Exotel

Open Exotel Settings. Fill Account SID, Subdomain, API Key and API Token, and a Webhook Verify Token of your choice. Tick Enabled and save. The CRM refuses a subdomain that is not an Exotel API host and an account it cannot open.

In Exotel's flow for incoming calls, add a Passthru applet with the URL https://HOST/api/crm/exotel?key=TOKEN, where TOKEN is the Webhook Verify Token.

Create a Telephony Agent for each user. Set Exotel Number, and add the agent's own numbers under Phone Numbers. The primary row fills Mobile No.

Tick Record Outgoing Calls to record calls placed from the desk.

Telephony Agent

One agent record per user, named by the user.

FieldMeaning
Default MediumTwilio or Exotel, used by the Call button when both are on
Twilio Number, DeviceThe Twilio number the agent calls from and takes calls on; where they ring
Exotel NumberThe Exotel number the agent calls from
Phone NumbersThe agent's own numbers; one is primary

Make and take calls

  • Ctrl+O (Cmd+O on a Mac) opens the Calls panel with a dialer. With both providers on, pick one.
  • Lead, deal and contact pages have a Call button for each number on the record.
  • An incoming call to an agent's number rings that agent. The call card names the lead, deal or contact that owns the caller's number.
  • A live call shows as a card on every desk page while the panel is closed. It has Answer, Decline, Mute and Hang up as the provider allows.
  • Write a note or a task on the call while it runs or after it ends. Both link to the call log.

Without a provider, Call opens the device's dialer with a tel: link.

Call logs

Open Call Logs in the sidebar. Each log links to one lead or deal through Reference Document Type and Reference Name, and shows on that record's Calls tab.

FieldValues
TypeIncoming, Outgoing
StatusInitiated, Ringing, In Progress, Completed, Failed, Busy, No Answer, Queued, Canceled
Telephony MediumManual, Twilio, Exotel
From Number, To Number, Caller, Call Received ByWho called whom
Start Time, End Time, DurationWhen and how long
Recording URL, NoteThe recording and the note written on the call

A recording plays through /api/crm/recording?call_log=NAME, and only for users who can read that call log.

Webhooks

PathCalled by
/api/crm/twilio-voiceTwilio, for a call placed from the browser
/api/crm/twilio-incomingTwilio, for a call to your Twilio number
/api/crm/twilio-statusTwilio, the dialled call's status
/api/crm/twilio-recordingTwilio, the recording
/api/crm/exotel?key=TOKENExotel's Passthru applet and status callback

A Twilio request without a valid X-Twilio-Signature, or an Exotel request with the wrong key, gets 403 and writes nothing. A repeated callback updates the same call log.

On this page