Vtiger CRM offers APIs to track calls made from your telephony system. Using these APIs, you can integrate your telephone service provider with Vtiger CRM and use the following features:
With these features, you can:
Here are some benefits of phone calls API:
Follow these steps to configure the Phone Calls module:
After you save this gateway, the screen will display the Vtiger Secret Key, which should be passed in the header with the key X-VTIGER-SECRET for every API.
Note: Ensure your CRM user’s Office Phone is configured for this. Without the Phone Office number, the call pop-up will not appear inside the CRM.
After you select the Generic Gateway type, follow these steps to configure outgoing call details:
You can provide URL-based authorization for outgoing calls in the Generic Gateway configuration.
For Incoming calls, the phone system should notify Vtiger using the APIs documented below.
Note: All of them use the below endpoints.
Listed below are API details for Call Events:
Trigger this callback to log the call and show incoming call notifications to all users in Vtiger when a call is started/initiated. The call log is created with the call status set to ringing.
Example:
The above should be replaced with your instance URL - For example, acme.od2.vtiger.com.
Parameters
Name | Type | Description |
---|---|---|
from (required) | string | this is the customer’s phone number |
to | string | this is the CRM User’s number, which should be set to the Office Phone field in the Users Preference page. |
event (required) | string | name of the event (call_initiated) |
call_id (required) | mixed | unique call identifier |
direction | string | This is used to identify the direction of the call (inbound/outbound). This is an optional parameter. If not provided, Vtiger will search if the from number is associated with any user and decide the direction. |
This callback can be sent when a call is established between the caller and the receiver. After the call is picked up, you will know which agent actually picked up the call. It will also change the Phone Call record status to in progress.
We will use the to parameter to identify the user who has picked up the call.
Example:
Parameters
Name | Type | Description |
---|---|---|
from | string | This is the customer’s phone number |
to (required) | string | This is the CRM user's number, which should be set to the Office Phone field in the Users Preference page. |
event (required) | string | name of the event (call_connected) |
call_id (required) | mixed | unique call identifier |
Trigger this callback when the call recording is ready. To capture the recordings, you need to pass call_id and recording_url.
Example:
Parameters
Name | Type | Description |
---|---|---|
event (required) | string | name of the event (call_recording) |
call_id (required) | mixed | unique call identifier |
recordingurl (required) | string | recording url |
Trigger this callback when the call is transferred. Note: call_id and transferred_number parameters are mandatory.
Example:
Parameters
Name | Type | Description |
---|---|---|
event (required) | string | name of the event (call_transfer) |
call_id (required) | mixed | unique call identifier |
transferred_number (required) | string | transfer agent number |
Trigger this callback after a call is completed to remove the call notification and update the call log with call hangup details. Phone Call record status is changed to complete/busy/hangup depending on the hang_reason given.
Example:
Parameters
Name | Type | Description |
---|---|---|
event (required) | string | name of the event (call_hangup) |
call_id (required) | mixed | unique call identifier |
hangup_reason | string | You can pass the hang-up reason like unanswered, busy, or call completed, etc. This will set the Call Status in the table below (default = completed). |
billrate | string | bill rate |
billduration | string | billing duration in seconds |
recordingurl | string | recording URL |
notes | string | optional call notes |
Hangup reason and its mapping to call status.
hangup_reason | call status |
---|---|
no_answer | hangup |
busy | busy |
completed | completed |
any_other_state | any_other_state |
The following API will open the Contact/Lead/Organization record with the matching number. This API can be used by 3rd part applications to open contact records easily using a phone number.
Example:
Results