Class: Contact

types.Contact(id, type, name, phoneNumber, prefix, extension)

Class representing a Contact. This object is used to represent phone system contact or any call target

Constructor

new Contact(id, type, name, phoneNumber, prefix, extension)

Create a Contact.
Parameters:
Name Type Description
id string The unique contactId
type string The type of the contact, one of the CONTACT_TYPE values
name string The label for this contact to be displayed in the UI
phoneNumber string The phone number associcated with this contact
prefix string Any prefix to be dialed before dialing the number (i.e. +1)
extension string Any extension to be dialed after dialing the number
Source: