# S+M VoIP for EspoCRM

Caller pop-ups, automatic call logging, click-to-call, recordings and SMS/MMS texts inside EspoCRM, with 3CX or Twilio.

S+M VoIP for EspoCRM brings your phone calls and text messages into EspoCRM. While the phone rings, the caller's
Contact, Lead or Account pops up on screen; when the call ends, it is logged on that record for you; a Call button
dials from any record; recordings play inside the CRM; and texts (SMS and MMS) are sent and received from the record.
It is an extension for teams that already keep their customers in EspoCRM and run their phones on 3CX or Twilio.

It fixes the gap between the phone and the CRM. Without it, someone answers without knowing who is calling, notes the
call later or not at all, and texts customers from a personal phone that nobody else can see. With it, the history of
every call and text sits on the customer's record, where the next person can read it. Sapiens + Machines builds and
sells the extension; you install it in your own EspoCRM and start with a 30-day free trial from your S+M account.

## What it does

The features your team uses every day, inside the CRM they already have open.

### Caller pop-ups {icon=phone-incoming}
Within a few seconds of a call ringing at your extension or softphone, EspoCRM shows the caller's Contact, Lead or
Account. For an unknown number it offers Create Lead or Create Contact, with the number filled in. The pop-up closes
by itself when the call ends.

### Calls logged for you {icon=notebook}
Every call with a known Contact, Lead or Account becomes a Call on that record, assigned to the person on the line:
inbound, missed, voicemail, outbound or unanswered, with its start and end. Missed calls and voicemails also arrive in
the notification bell. A phone icon in the top bar lists your calls from the last 7 days until you clear them.

### Click to call {icon=phone-outgoing}
On a Contact, Lead or Account, open the menu and choose Call. With Twilio, your softphone or the browser phone rings
first, and when you answer, the customer's phone rings and shows your company number. With 3CX, the 3CX web client's
dialer opens with the number, or the 3CX app through a phone link.

### Recordings in the CRM {icon=mic}
When a call was recorded, its Call has a Recording panel that plays it in EspoCRM. The audio stays at Twilio or 3CX:
EspoCRM streams it after checking that you may see that Call, and keeps no copy.

### Texts on the record {icon=message-square-text}
Send and receive SMS and MMS from the Texts panel on any Contact, Lead or Account, with up to 5 pictures (JPEG, PNG
or GIF) per text. New texts pop up and land in the notification bell, alerting the person assigned to the record
first. An All texts page searches every conversation you may see, and each text you send shows whether it was
delivered. When someone replies STOP, the number is marked opted out until they reply START.

### The browser phone {icon=headset}
With Twilio, each person can turn on a phone inside EspoCRM and answer or make calls with the computer's microphone:
answer or decline, mute, keypad and hang up from the top bar. The browser and a softphone can ring together, so a
call reaches you at your desk or on your mobile.

## How it works

### Start a trial and install
In your [S+M account](https://my.sapiensandmachines.com), start a free trial for your CRM's address under Products &
licenses and copy the key. Download the extension there, then in EspoCRM upload the zip under Administration →
Extensions, check that the Site URL is the CRM's public https address, and paste the key on the Licence page.

### Connect your phone system
Connect 3CX or Twilio for calls, and Twilio for texts. With 3CX you download a ready template from EspoCRM and upload
it in the 3CX Admin Console. With Twilio you enter your account details, choose who may text from each number, and
point your numbers at EspoCRM. Then give each person their 3CX Extension or SIP Username on their User.

### Work from the record
From then on, the phone rings and the record pops up, calls are logged, texts appear on the customer's record and the
Call button dials. Licence renewals happen by themselves once a day, and new versions install over the old one with
settings and data kept.

## Who it's for

### Good fit if
- Your team keeps customers in EspoCRM 9 or 10 and wants every call and text on the customer's record.
- You run your phones on 3CX version 20, or you use or are ready to use Twilio for calls and texts.
- Several people share phone numbers and need to see who called, who texted and who answered.

### Probably not if
- You don't use EspoCRM yet: [Software Solutions](https://sapiensandmachines.com/services/software-solutions/) can set up the CRM first.
- Your calls run on a phone system other than 3CX or Twilio and you don't plan to change; the extension connects only
  to those two.
- Your customers need to see their calls and texts in EspoCRM's customer portal: portal users never see them.

## How it connects

**3CX or Twilio for calls, Twilio for texts.** You choose one phone system for calls. With
[3CX](https://docs.sapiensandmachines.com/en/espocrm-voip/connect-3cx), routing, queues, voicemail and hours stay in
3CX, and its app shows who is calling with a link to the record. Calls that only reached a receptionist, a ring group
or a queue are logged as missed. 3CX has one CRM connection for the whole system, so its calls are logged in this CRM
from then on. With [Twilio](https://docs.sapiensandmachines.com/en/espocrm-voip/connect-twilio), people answer on any
SIP softphone (for example Zoiper) or the browser phone, and who rings, for how long, voicemail and hours are set in
Twilio Studio. On a mobile phone, use a softphone with push notifications, because free apps fall asleep and calls go
to voicemail. Texts always go through Twilio, and EspoCRM workflows can send texts from your default number.

**What you need.** EspoCRM 9 or 10 (tested with 9.0, 9.2 and 10.0), PHP 8.1 or newer, and MariaDB, MySQL or
PostgreSQL. The CRM's Site URL must be its public https address, because 3CX and Twilio reach it there and the licence
is tied to it. EspoCRM's cron must run, and the CRM must be able to reach licenses.sapiensandmachines.com. For texts,
you need a Twilio account with numbers that can send SMS and MMS; in the US, business texting must be registered with
the carriers (10DLC for local numbers, verification for toll-free numbers). The full list is on the
[requirements page](https://docs.sapiensandmachines.com/en/espocrm-voip/requirements).

**Licence and 30-day trial.** Each licence key works for one CRM address: the host of its Site URL, without www. The
free trial lasts 30 days, needs no card and is one per company and address. Until a key is entered, incoming calls and
texts are still saved, but nothing can be sent or dialled. With a subscription, the extension checks with S+M once a
day and picks up its new key by itself; if the CRM moves, you move the licence to the new address in your S+M account.
Read [Licence and trial](https://docs.sapiensandmachines.com/en/espocrm-voip/license-and-trial) for what happens near
the end of a licence.

**Languages.** The extension works in English and Spanish, and so does its documentation. Call log entries are written in English.

## Frequently asked questions

### How do I make and log phone calls inside EspoCRM?

Install S+M VoIP for EspoCRM and connect it to 3CX or Twilio. Every call with a known Contact, Lead or Account is then logged on that record, assigned to the person who took or made it, and a Call action on the record dials the number. Missed calls and voicemails also land in EspoCRM's notification bell.

### Can I send and receive text messages (SMS) from EspoCRM?

Yes, through Twilio. Each Contact, Lead and Account gets a Texts panel with the whole conversation, and you can add pictures. Replies arrive in EspoCRM with a pop-up, and an All texts page lets you search every conversation you may see. Opt-outs are handled for you; in the US, register your business texting with the carriers in Twilio first.

### Does S+M VoIP for EspoCRM work with 3CX?

Yes, with 3CX version 20. 3CX keeps its routing, queues, voicemail and hours, shows who is calling in its own app, and logs each call in EspoCRM. The Call button opens 3CX's web client or app. Recordings and the ringing pop-up in EspoCRM also need 3CX's API (XAPI and Call Control) on your 3CX licence.

### Are call recordings stored in my CRM?

No. Recordings stay at Twilio or 3CX. When you open a recorded Call, EspoCRM checks that you may see that Call, streams the audio into a Recording panel and keeps no copy.

### Is there a free trial of S+M VoIP for EspoCRM?

Yes. The free trial lasts 30 days and needs no card, one per company and CRM address. You start it in your S+M account under Products & licenses, then paste the key into EspoCRM. If you subscribe afterwards, the paid key reaches the CRM on its own.

### What happens if my EspoCRM VoIP licence expires?

Administrators see a reminder bar 7 days before the end, and everything keeps working for 14 days after the expiry date. After that, sending texts, the Call button, the browser phone and the pop-ups turn off, but incoming calls and texts are still saved and logged. A valid key turns everything back on straight away.

### 3CX or Twilio for calls in EspoCRM, which should I choose?

If you already run your phones on 3CX, keep it and connect it; agents keep using 3CX's app. If you don't have a phone system, or want calls answered on a softphone or in the browser inside EspoCRM, use Twilio and set ringing, voicemail and hours in Twilio Studio. Texts go through Twilio either way.

## Know who's calling before you say hello

Start a 30-day free trial for your CRM's address, install the extension and connect 3CX or Twilio. No card needed.

[Start a free trial](https://my.sapiensandmachines.com/products) [Read the docs](https://docs.sapiensandmachines.com/en/espocrm-voip)
