Skip to main content

SQL Connectors for Contact Sync

Use SQL Connectors to import contact rows into Call Telemetry's local Contacts directory. The connector saves a database connection, a query, and field mappings; Sync Now queues a background import from that saved configuration.

Screenshot Data

The screenshots on this page use the real Vue and Quasar interface with synthetic API fixtures. The database names, engine availability, sample columns, and queued job ID are examples. They do not show a live database connection or prove that a sync completed.

Requirements​

  • Call Telemetry Appliance release that includes SQL Connectors.
  • A network route from the appliance directly to the database. The current SQL sync backend does not establish an SSH tunnel.
  • A database account with permission to read the tables or views used by your query.

Add A SQL Connector​

  1. Open Contacts & CRM → Contacts → Connectors.
  2. Click Add Connector, then choose SQL databases.
  3. In the Engine step, select an engine the appliance reports as Available.
  4. Enter a connection name, host, port, database, phone-number column, schema, username, and password. You can use the Connection String option instead of individual fields.
  5. Advanced Options displays SSL and CA Certificate fields, but the current SQL sync backend does not pass those values to the database adapters. Do not rely on them for TLS. The wizard's SSH Tunnel fields are also not applied; the appliance must reach the database over the network directly.
  6. Click Save Connection.
Screenshot of the Add a connector dialog showing the SQL databases family and an available PostgreSQL engine

The engine selector reports capability and driver metadata from the appliance at runtime. The capability catalog lists PostgreSQL, MySQL, Microsoft SQL Server, and SQLite; Oracle is unsupported. An engine marked Available is not a qualification claim for every engine and runtime combination, and it does not confirm that your configured database can be reached. Test the saved connection, then verify imported contacts in your deployment before relying on that engine.

Screenshot of SQL engine selection showing PostgreSQL available and other supported engines with unavailable drivers in the synthetic fixture

Test The Saved Connection​

After saving, click Test on the connector card to check the saved settings. The card reports pass or fail. When editing a saved connector, the wizard's Test step displays connection-check results; it tests the saved configuration, so save edited settings first.

A successful connection test confirms connectivity for those settings. It does not run a contact import.

Build And Save The Query​

  1. Open the connector and select Query Builder.
  2. Use the schema browser to inspect available schemas, tables, and columns.
Screenshot of the SQL schema browser showing the public contacts table and synthetic contact columns with their data types
  1. Add the contacts table, choose the columns your query should return, and review the generated SQL in SQL Preview.
  2. Click Save Query.

The visual builder stores the query definition on the connector. The Results panel directs you to Live Tester to execute the saved configuration with a phone number; the query builder does not import the selected rows.

Screenshot of SQL Preview showing the generated query for synthetic public contacts columns

Map Query Columns To Contact Fields​

  1. Select Field Mapping.
  2. Map the query's phone-number column to Phone Number and choose a name column or name template. Map company, department, email, title, or custom fields when those columns are returned by your query.
  3. Click Save Mappings.

Save the query before saving its mappings. The editor keeps Save Mappings disabled while query changes are unsaved.

Screenshot of field mapping from synthetic SQL contact columns to Call Telemetry contact fields

Test A Phone Number​

Open Live Tester, enter a sample phone number, and click Search. Review the raw query rows and executed SQL. The Live Tester does not evaluate field mappings or import the database's contact set. It checks the saved connector query; it does not run a query on every call.

For a PostgreSQL query during call-policy evaluation, configure the separate PostgreSQL Policy App.

Queue A Manual Sync​

  1. Save the query and field mappings.
  2. Open Sync and click Sync Now.
  3. When the editor reports a job as queued, treat that as confirmation that the request was accepted—not that the import finished.
  4. Verify the resulting records in Contacts before relying on them for call resolution.

The current editor provides manual sync only. The Sync panel does not show completion status, sync history, or progress.

Ownership And Failed Syncs​

Sync creates contacts in the connector's organization and refreshes an existing SQL contact only when that contact is marked as owned by the same connector. A matching manual contact, record from another source or connector, or legacy SQL contact without an ownership marker is a conflict and remains unchanged. This can result in fewer contact changes than rows returned by the SQL query; the editor does not show a conflict count.

Contact writes commit per row, so successful writes before a later failure may remain in Contacts. For backend delta-sync runs, the watermark advances only after all rows are written. If a row write fails, it stays at the last successful cursor, allowing a retry to replay rows and refresh contacts already owned by this connector.

Screenshot of the manual sync panel showing a queued job receipt with no completion status

Troubleshoot​

An engine is marked Driver unavailable. The connector's adapter is supported, but its driver is not available in the current appliance runtime. Choose an engine marked Available or have the appliance runtime qualified with the required driver.

The connection test fails. Check the host, port, database, credentials, and direct network reachability from the appliance. The wizard's SSL/CA and SSH Tunnel fields do not configure those transport paths in the current SQL backend. Save corrected connection details before testing again.

The schema browser does not show the expected table. Confirm that the saved database user can access the schema and read the table or view. Check the selected schema and run Test on the saved connection.

A sync job was queued, but contacts are not visible. The queue receipt does not include completion status. Verify the records in Contacts after the job has run; the connector editor does not provide a completion or progress view.