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
idstring——Unique identifier for the phone configuration
phoneNumberstringYes—Phone number in E.164 format
providerPhoneNumberIdstringYes—Provider's unique identifier
phoneRequestIdstringYes—Original purchase transaction ID
friendlyNamestring | nullYes—Human-readable display name
regionIdstring | nullNo—Provider-specific region identifier
monthlyPricenumber | nullNo—Monthly recurring cost
regionOrCountryNamestring | nullNo—Human-readable region/country name
countryCodestringNo—ISO 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
metadataobjectNo—Provider-specific metadata
voiceChannelIdstring | nullNo—Voice deployment channel ID
smsChannelIdstring | nullNo—SMS deployment channel ID
voiceChannelDeploymentChannelInfo | nullNo—Populated voice channel
smsChannelDeploymentChannelInfo | nullNo—Populated SMS channel
isUSSMSPermittedbooleanNofalseUS SMS messaging compliance flag
createdAtnumber——Unix timestamp when created
updatedAtnumber——Unix 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