Ctrl K
ring2all.com

Integrations Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Supported Providers
  5. Configuration Settings
  6. AI Integration Tools
  7. Common Scenarios & Examples
  8. Limitations & Important Notes
  9. Troubleshooting Tips
  10. Glossary

---

1. Module Overview (Technical)

What Are Integrations?

The Integrations module is a unified connector platform that links the PBX with external systems across three categories:

  • CRM Platforms - Contact sync, call logging, screen pop
  • Scheduling Platforms - Direct appointment booking via AI
  • Directory Services - LDAP/Active Directory authentication and contact lookup

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Integrations Architecture                          │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Ring2All PBX                                                   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Integrations Module                               │   │
│  │                                                          │   │
│  │  Categories:                                             │   │
│  │  ├─ CRM: Salesforce, HubSpot, Zoho, Pipedrive...        │   │
│  │  ├─ Scheduling: Calendly (Direct Booking API)           │   │
│  │  └─ Directory: LDAP / Active Directory                  │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Integration Service + Tool Gateway                     │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Available Actions by Category                     │   │
│  │                                                          │   │
│  │  CRM Actions:                                            │   │
│  │  ├─ Sync contacts from external CRM                     │   │
│  │  ├─ Log call activity to CRM contacts                   │   │
│  │  └─ Screen pop on incoming calls                        │   │
│  │                                                          │   │
│  │  Scheduling Actions:                                     │   │
│  │  ├─ Get event types and available time slots            │   │
│  │  ├─ Create direct bookings via API                      │   │
│  │  └─ Cancel or reschedule appointments                   │   │
│  │                                                          │   │
│  │  Directory Actions:                                      │   │
│  │  ├─ Authenticate users via LDAP/AD                      │   │
│  │  ├─ Sync users and groups                               │   │
│  │  └─ Caller lookup from directory                        │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ API / LDAP Calls                                       │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        External Platforms                                │   │
│  │                                                          │   │
│  │  CRM:        HubSpot, Salesforce, Zoho, Pipedrive,      │   │
│  │              Dynamics 365, Odoo                          │   │
│  │                                                          │   │
│  │  Scheduling: Calendly                                    │   │
│  │                                                          │   │
│  │  Directory:  Microsoft Active Directory, OpenLDAP,       │   │
│  │              FreeIPA, 389 Directory Server               │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.crm_integrationsIntegration configurations

Key Files

FileDescription
modules/integrations/Frontend module
---

2. Module Overview (Commercial/Business)

Business Value

CRM Integrations provides unified customer data:

Without CRM IntegrationWith CRM Integration
Separate systemsUnified data
Manual call loggingAuto call logging
Unknown callersScreen pop contact info
No call historyCRM activity records

Use Cases

  1. Contact Sync
- Import CRM contacts

- Caller ID lookup

  1. Call Logging
- Auto-log calls to contacts

- Recording links in CRM

  1. Screen Pop
- Show contact on incoming call

- Agent efficiency

  1. Activity Tracking
- Call duration tracking

- Agent performance data

Feature Highlights

FeatureBenefit
Multi-CRM Support6 major platforms
OAuth 2.0Secure authentication
Contact SyncUnified contact database
Call LoggingAutomatic activity creation
Bi-directionalTwo-way data sync
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • Connect to major CRM platforms
  • Configure OAuth or API key authentication
  • Enable contact synchronization
  • Enable call activity logging
  • Manage multiple integrations

CRM Integrations Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              CRM Integrations                                   │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Connect your telephony system with your Customer Relationship │
│  Management software to sync contacts, calls, and activities.  │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ [HubSpot Logo]                                            │  │
│  │ HubSpot                                                   │  │
│  │ Marketing, sales, and service software that helps your   │  │
│  │ business grow without compromise.                         │  │
│  │                                          [Configure]      │  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ [Salesforce Logo]                                         │  │
│  │ Salesforce                                                │  │
│  │ Connect to the world's #1 CRM platform.                   │  │
│  │                                    ✓ Connected [Configure]│  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ [Zoho Logo]                                               │  │
│  │ Zoho                                                      │  │
│  │ Unique and powerful suite of software to run your        │  │
│  │ entire business.                                          │  │
│  │                                          [Configure]      │  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  ... Pipedrive, Dynamics 365, Odoo ...                         │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Configure CRM

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Configure Salesforce                               │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ▼ General Settings                                             │
│                                                                 │
│  Enabled: ✓                                                     │
│                                                                 │
│  ▼ Authentication                                               │
│                                                                 │
│  Authentication Type: [OAuth 2.0 ▼]                            │
│                                                                 │
│  Client ID: [your-client-id-here        ]                      │
│  Client Secret: [••••••••••••••••        ]                     │
│                                                                 │
│  Redirect URI: https://pbx.example.com/crm/callback            │
│    ⓘ Copy this URI to your CRM app settings.                  │
│                                                                 │
│  [Connect with Provider]                                        │
│                                                                 │
│  ▼ Synchronization Settings                                     │
│                                                                 │
│  Sync Contacts: ✓                                              │
│    ⓘ Automatically sync contacts between your PBX and CRM     │
│                                                                 │
│  Sync Calls: ✓                                                 │
│    ⓘ Log call activity and recordings to CRM contacts         │
│                                                                 │
│  [Save Configuration]                                           │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Redirect URI: Copy to CRM app settings for OAuth.
TIP
Test Connection: Use "Connect with Provider" to verify.
NOTE
API Limits: CRM platforms have API rate limits.

---

4. Supported Providers

CRM Providers

ProviderDescriptionAuth Types
HubSpotMarketing, sales, service softwareOAuth 2.0
SalesforceWorld's #1 CRM platformOAuth 2.0
ZohoComplete business suiteOAuth 2.0, API Key
PipedriveSales-focused CRMOAuth 2.0, API Key
Dynamics 365Microsoft business appsOAuth 2.0
OdooOpen source ERP/CRMAPI Key

Scheduling Providers

ProviderDescriptionAuth Types
CalendlyScheduling automation platformOAuth 2.0

Directory Providers

ProviderDescriptionAuth Types
Microsoft Active DirectoryEnterprise directory serviceLDAP Bind
OpenLDAPOpen source LDAP serverSimple Bind, SASL
FreeIPAIdentity, Policy, Audit for LinuxLDAP Bind
389 Directory ServerEnterprise-class LDAPSimple Bind

Provider-Specific Settings

ProviderUnique Fields
Dynamics 365Tenant ID
ZohoData Center Region
OdooServer URL, Database Name
CalendlyEvent Type (selected during booking)
LDAPServer URL, Base DN, Bind DN, User Filter
---

5. Configuration Settings

General Settings

FieldDescription
EnabledActivate integration

Authentication

FieldDescription
Auth TypeOAuth 2.0 or API Key
Client IDOAuth application ID
Client SecretOAuth application secret
API KeyDirect API authentication
Redirect URIOAuth callback URL
Server URLSelf-hosted instance URL
Tenant IDAzure/Microsoft tenant
Data CenterRegional endpoint

Synchronization

FieldDescription
Sync ContactsImport/export contacts
Sync CallsLog call activities
---

6. AI Integration Tools

When Enable Agent AI Access is activated, AI Agents can use the integration's tools during calls.

CRM AI Actions

ActionDescription
search_contactSearch for contacts by name, phone, or email
get_contactGet detailed contact information
add_noteAdd notes to a contact record
log_callLog call activity to the contact
create_leadCreate a new lead record
update_contactUpdate contact information

Calendly AI Actions

ActionDescription
get_event_typesRetrieve available event types (meetings, consultations)
get_available_timesGet available time slots for a specific event type
create_bookingCreate a booking directly via API (collects name, email, timezone)
list_scheduled_eventsList upcoming scheduled events
cancel_eventCancel a scheduled event

Calendly Direct Booking Workflow

  1. AI identifies the appropriate event type
  2. AI checks available time slots
  3. AI collects caller name, email, and timezone
  4. AI creates the booking (POST /invitees)
  5. Calendly sends confirmation and reminders automatically

NOTE
Calendly Paid Plan Required: Direct booking via the Scheduling API requires a paid Calendly subscription.

AI Policies

PolicyDescription
Require confirmation for writesAI asks for confirmation before modifying data
Max actions per conversationLimit tool calls per call
Timeout (ms)Maximum wait time for responses
Retry attemptsNumber of retries on failure
Redact sensitive dataHide personal information in logs
Fallback behaviorAction when tool fails: Continue, Escalate, or End
Escalation DestinationWhere to transfer when escalating to human
---

7. Common Scenarios & Examples

Scenario 1: Connect HubSpot

  1. Click Configure on HubSpot
  2. Enable integration
  3. Enter Client ID and Secret from HubSpot app
  4. Copy Redirect URI to HubSpot
  5. Click "Connect with Provider"
  6. Complete OAuth flow
  7. Enable Sync Contacts and Sync Calls
  8. Save

Scenario 2: Connect Salesforce

  1. Create Connected App in Salesforce
  2. Copy Client ID and Secret
  3. Add Redirect URI to Salesforce
  4. Configure in Ring2All
  5. Complete OAuth flow
  6. Enable sync options

Scenario 3: API Key Authentication

  1. Click Configure on Pipedrive
  2. Select Auth Type = API Key
  3. Enter API Key from Pipedrive
  4. Enable sync options
  5. Save

Scenario 4: Self-hosted Odoo

  1. Click Configure on Odoo
  2. Enter Server URL (your Odoo instance)
  3. Enter Database Name
  4. Enter API Key
  5. Enable sync options
  6. Save

Scenario 5: Connect Active Directory

  1. Navigate to Integrations → Directory Services
  2. Click Configure on Active Directory
  3. Enter connection details:
- Name: Corporate AD

- Server URL: ldaps://dc.company.com

- Port: 636 (SSL) or 389 (StartTLS)

  1. Enter bind credentials:
- Bind DN: CN=ServiceAccount,OU=Users,DC=company,DC=com

- Bind Password: (service account password)

  1. Configure search settings:
- Base DN: DC=company,DC=com

- User Filter: (objectClass=person)

  1. Map attributes (defaults work for most AD setups):
- Username: sAMAccountName

- Email: mail

- Display Name: displayName

- Phone: telephoneNumber

  1. Test Connection
  2. Enable Sync if desired
  3. Save

Scenario 6: Calendly for AI Agent Booking

  1. Navigate to Integrations → Scheduling
  2. Click Configure on Calendly
  3. Enter OAuth credentials from Calendly Developer Portal:
- Client ID: (from your Calendly app)

- Client Secret: (from your Calendly app)

  1. Click Connect with Provider
  2. Complete OAuth authorization flow
  3. Enable AI Agent Access toggle
  4. Configure AI Policies:
- Require confirmation for bookings: ✓

- Max actions per conversation: 5

  1. Save

NOTE
Calendly Paid Plan Required: Direct booking via the Scheduling API requires a paid Calendly subscription.

---

7. Limitations & Important Notes

Technical Notes

NOTE
OAuth Callback: Redirect URI must be accessible by CRM.
NOTE
Rate Limits: CRM APIs have request limits.
WARNING
Secure Credentials: Keep Client Secret confidential.

Best Practices

  1. Use OAuth: More secure than API keys
  2. Test Connection: Verify before enabling sync
  3. Monitor Sync: Check for errors
  4. Rate Limits: Respect CRM API limits
  5. Backup Data: Before initial sync

OAuth Setup Requirements

RequirementPurpose
CRM AppCreate connected app in CRM
Redirect URIConfigure callback URL
ScopesGrant necessary permissions
HTTPSRequired for OAuth
---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
Connection failedWrong credentialsVerify Client ID/Secret
OAuth errorBad Redirect URICheck URI matches exactly
Sync not workingRate limitedWait and retry
Missing contactsPermissionsCheck CRM app scopes

Test CRM Connection

Bash
# Verify OAuth token (example)
curl -H "Authorization: Bearer {token}" \
  https://api.hubspot.com/contacts/v1/lists/all/contacts/all

Check Integration Status

  1. Go to CRM Integrations
  2. Look for ✓ Connected status
  3. Check last sync time
  4. Review error logs

---

9. Glossary

TermDefinition
CRMCustomer Relationship Management
OAuth 2.0Industry auth standard
API KeySimple authentication token
Redirect URIOAuth callback URL
Screen PopShow contact on call
SyncData synchronization
---

Lua Script Status ℹ️

Integration Module

ComponentStatus
CRM Integrationsℹ️ Configuration module - backend service handles API calls
CRM Integrations is a configuration module. The backend CRM service handles API calls to sync contacts and log calls. No Lua handlers are used for CRM integration.

---

Documentation last updated: February 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?