chore: new telephony config as default (#260)

- Mark first new telephony config as default
- Show telephony config in campaign details
This commit is contained in:
Abhishek 2026-04-30 17:33:16 +05:30 committed by GitHub
parent 14bc66d21d
commit 5cfdbeff02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 139 additions and 19 deletions

View file

@ -614,6 +614,21 @@ export default function CampaignDetailPage() {
)}
</dd>
</div>
<div>
<dt className="text-sm font-medium">Telephony Configuration</dt>
<dd className="mt-1">
{campaign.telephony_configuration_id ? (
<button
onClick={() => router.push(`/telephony-configurations/${campaign.telephony_configuration_id}`)}
className="text-blue-600 hover:text-blue-800 hover:underline"
>
{campaign.telephony_configuration_name || `Configuration #${campaign.telephony_configuration_id}`}
</button>
) : (
<span className="text-muted-foreground">Not assigned</span>
)}
</dd>
</div>
<div>
<dt className="text-sm font-medium">State</dt>
<dd className="mt-1 capitalize">{campaign.state}</dd>

View file

@ -96,12 +96,6 @@ export type AriConfigurationRequest = {
* websocket_client.conf connection name for externalMedia (e.g., dograh_staging)
*/
ws_client_name?: string;
/**
* Inbound Workflow Id
*
* Workflow ID for inbound calls
*/
inbound_workflow_id?: number | null;
/**
* From Numbers
*
@ -136,10 +130,6 @@ export type AriConfigurationResponse = {
* Ws Client Name
*/
ws_client_name?: string;
/**
* Inbound Workflow Id
*/
inbound_workflow_id?: number | null;
/**
* From Numbers
*/
@ -483,6 +473,14 @@ export type CampaignResponse = {
* Redialed Campaign Id
*/
redialed_campaign_id?: number | null;
/**
* Telephony Configuration Id
*/
telephony_configuration_id?: number | null;
/**
* Telephony Configuration Name
*/
telephony_configuration_name?: string | null;
};
/**
@ -703,6 +701,12 @@ export type CloudonixConfigurationRequest = {
* Cloudonix Domain ID
*/
domain_id: string;
/**
* Application Name
*
* Cloudonix Voice Application name. The application's url is updated when inbound workflows are attached to numbers on this domain.
*/
application_name: string;
/**
* From Numbers
*
@ -729,6 +733,10 @@ export type CloudonixConfigurationResponse = {
* Domain Id
*/
domain_id: string;
/**
* Application Name
*/
application_name: string;
/**
* From Numbers
*/
@ -4114,6 +4122,12 @@ export type VobizConfigurationRequest = {
* Vobiz Auth Token
*/
auth_token: string;
/**
* Application Id
*
* Vobiz Application ID. The application's answer_url is updated when inbound workflows are attached to numbers on this account.
*/
application_id: string;
/**
* From Numbers
*
@ -4140,6 +4154,10 @@ export type VobizConfigurationResponse = {
* Auth Token
*/
auth_token: string;
/**
* Application Id
*/
application_id: string;
/**
* From Numbers
*/