Skip to content

Set up Contact Synchronization from Microsoft SQL

Once Cloud Voice is connected to your Microsoft SQL database, you can pull contact records into the system on a set schedule. Imported contacts become dialable from the Cloud Voice App, and because each batch lands in a phonebook, you can also route incoming calls to the right team by matching a caller against a particular phonebook.

How many company contacts and phonebooks your system can hold depends on the number of extensions it has.

Extensions (N)N ≤ 5050 < N ≤ 200N > 200
Company contacts (total)50,000200,000500,000
Company phonebooks100200500

Map the contact fields you want to exchange between Cloud Voice and Microsoft SQL. See Integrate Cloud Voice with Microsoft SQL.

  1. On the Microsoft SQL configuration page, scroll down to the Contacts Synchronization section.

  2. Turn on Contacts Synchronization, then complete the settings below.

    Cloud Voice, contact synchronization options for a Microsoft SQL source

    Synchronize to Phonebook: Decide where the imported contacts are stored:

    • Create New: Build a brand-new phonebook for the synced contacts. Enter its name in the Phonebook Name field.

    • Read Specific Property Value and Create New: Generate phonebooks automatically from the values held in one column of your contact table. Enter that column’s name in the Property Name field.

    • {existing_phonebook}: Send the contacts to an existing empty phonebook.

    Data Synchronization Frequency: Choose how often contacts are synced, then set the time in the field that appears.

    Feedback Email: Optional. Enter an address to be notified of each synchronization result.

    Sync Contact Filter: Enter the SELECT statement that pulls records from Microsoft SQL, using the form select ${MAP} from {schema_name}.{table_name}.

    For example: select ${MAP} from testpbx.contacts order by id desc

    • select ${MAP}, the database columns to bring into the system. At runtime, ${MAP} is replaced by the field values that correspond to the fields you enabled in the Map section.
    • from testpbx.contacts, the source table, written as a two-part name ({schema_name}.{table_name}).
    • order by id desc, sorts the results in descending order.

    Remove existing contacts which are not received from the server: When enabled, any contact that synced successfully last time but is missing from the current run is deleted.

  3. Click Save.

  4. Click Sync Now to synchronize contacts right away.

    The Sync Now control that triggers an immediate contact import

  • A banner appears showing how many contacts were synchronized into the system.

    Success banner reporting the number of contacts imported

  • Review the imported contacts and their phonebooks under Contacts > Company Contacts / Phonebooks. Records that came from the SQL source carry a source tag Microsoft SQL source tag.

    Imported contacts listed under Company Contacts with their assigned phonebooks

  • Authorized extension users can view and dial the contacts directly from the Cloud Voice App.

    Client permission setting that lets extension users see and call the synced phonebook

To send incoming calls to specific destinations based on which phonebook a contact belongs to, set up inbound routes that match callers against your phonebooks.