Skip to main content

Phone Configuration

Phone Configuration manages telephony resources including phone numbers from various providers (SignalWire, Twilio). They track provider information, channel associations, and operational status.

Schema: PhoneConfigurationSchema Source: src/core/service-configuration/phone-config.schema.ts


Attributes

AttributeTypeRequiredDefaultDescription
idstringUnique identifier for the phone configuration
phoneNumberstringYesPhone number, short code, or alphanumeric sender ID
providerPhoneNumberIdstringYesProvider's unique identifier
phoneRequestIdstringYesReference ID for the original phone number request or setup configuration
friendlyNamestring | nullYesHuman-readable display name
regionIdstring | nullNoProvider-specific region identifier
monthlyPricenumber | nullNoMonthly recurring cost
regionOrCountryNamestring | nullNoHuman-readable region/country name
countryCodestringNoISO 3166-1 alpha-2 country code
providerTypeenumNoSIGNALWIRETelephony service provider. One of SIGNALWIRE or TWILIO.
isImportedbooleanNofalseWhether imported from external system
statusenumNoINACTIVECurrent operational status. One of PENDING, ACTIVE, INACTIVE, SUSPENDED, or RELEASED.
isPortedbooleanNofalseWhether ported from another provider
markedForReleaseboolean | nullNofalseWhether marked for disconnection
metadataobjectNoProvider-specific metadata
voiceChannelIdstring | nullNoVoice deployment channel ID
smsChannelIdstring | nullNoSMS deployment channel ID
voiceChannelDeploymentChannelInfo | nullNoPopulated voice channel
smsChannelDeploymentChannelInfo | nullNoPopulated SMS channel
isUSSMSPermittedbooleanNofalseUS SMS messaging compliance flag
createdAtnumberUnix timestamp when created
updatedAtnumberUnix timestamp when last updated

Example

{
"id": "phone_abc123",
"phoneNumber": "+12125551234",
"providerPhoneNumberId": "PN123abc",
"phoneRequestId": "REQ456",
"friendlyName": "Customer Support Line",
"regionId": "us-ny",
"monthlyPrice": 1.00,
"regionOrCountryName": "New York, United States",
"countryCode": "US",
"providerType": "SIGNALWIRE",
"status": "ACTIVE",
"isImported": false,
"isPorted": false,
"isUSSMSPermitted": true,
"createdAt": 1709856000000,
"updatedAt": 1709856000000
}

Update Schema

SchemaDescription
UpdatePhoneConfigurationSchemaOnly allows updating friendlyName