wxc_sdk.telephony.location.internal_dialing module
- class wxc_sdk.telephony.location.internal_dialing.InternalDialing(*, enableUnknownExtensionRoutePolicy: bool, unknownExtensionRouteIdentity: RouteIdentity | None = None)[source]
Bases:
ApiModel
- enable_unknown_extension_route_policy: bool
When enabled, calls made by users at the location to an unknown extension (between 2-6 digits) are routed to the selected route group/trunk as premises calls.
- unknown_extension_route_identity: RouteIdentity | None
destination for unknown extensions
- class wxc_sdk.telephony.location.internal_dialing.InternalDialingApi(*, session: RestSession, base: str | None = None)[source]
Bases:
ApiChild
Internal dialing settings for location
- read(location_id: str, org_id: str | None = None) InternalDialing [source]
Get current configuration for routing unknown extensions to the Premises as internal calls
If some users in a location are registered to a PBX, retrieve the setting to route unknown extensions (digits that match the extension length) to the PBX.
Retrieving the internal dialing configuration requires a full or read-only administrator auth token with a scope of spark-admin:telephony_config_read.
- Parameters:
location_id (str) – location for which internal calling configuration is being requested
org_id (str)
- Returns:
settings
- Return type:
- update(location_id: str, update: InternalDialing, org_id: str | None = None)[source]
Modify current configuration for routing unknown extensions to the Premises as internal calls
If some users in a location are registered to a PBX, enable the setting to route unknown extensions (digits that match the extension length) to the PBX.
Editing the internal dialing configuration requires a full administrator auth token with a scope of spark-admin:telephony_config_write.
- Parameters:
location_id (str) – location for which internal calling configuration is being requested
update (
InternalDialing
) – new settingsorg_id (str)
- base = 'telephony/config/locations'