Carrier change for trunk type (#564)

* support carrier credential authentication

* wip

* wip

* wip

* wip

* wip

* change trunk type to selector

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2025-10-21 17:49:25 +07:00
committed by GitHub
parent 7a0eb71bae
commit 53d0c0b510
5 changed files with 788 additions and 547 deletions

2
.env
View File

@@ -1,4 +1,4 @@
#VITE_API_BASE_URL=http://127.0.0.1:3000/v1
# VITE_API_BASE_URL=http://127.0.0.1:3000/v1
#VITE_DEV_BASE_URL=http://127.0.0.1:3000/v1
## enables choosing units and lisenced account call limits

View File

@@ -131,7 +131,7 @@ export const DEFAULT_WEBHOOK: WebHook = {
};
/** Default SIP/SMPP Gateways */
export const DEFAULT_SIP_GATEWAY: SipGateway = {
export const DEFAULT_SIP_INBOUND_GATEWAY: SipGateway = {
voip_carrier_sid: "",
ipv4: "",
port: 5060,
@@ -348,6 +348,12 @@ export const DTMF_TYPE_SELECTION: SelectorOptions[] = [
{ name: "Tones", value: "tones" },
];
export const TRUNK_TYPE_SELECTION: SelectorOptions[] = [
{ name: "IP Trunk", value: "static_ip" },
{ name: "Auth Trunk", value: "auth" },
{ name: "Registration Trunk", value: "reg" },
];
/** Available webhook methods */
export const WEBHOOK_METHODS: WebhookOption[] = [
{

View File

@@ -469,6 +469,8 @@ export interface CarrierRegisterStatus {
export type DtmfType = "rfc2833" | "tones" | "info";
export type TrunkType = "static_ip" | "auth" | "reg";
export interface Carrier {
voip_carrier_sid: string;
name: string;
@@ -497,6 +499,7 @@ export interface Carrier {
register_status: CarrierRegisterStatus;
dtmf_type: DtmfType;
outbound_sip_proxy: string | null;
trunk_type: TrunkType;
}
export interface PredefinedCarrier extends Carrier {

File diff suppressed because it is too large Load Diff

View File

@@ -218,7 +218,8 @@ fieldset {
}
}
.gateway {
.gateway,
.gateway-inbound {
padding: ui-vars.$px02;
border-radius: ui-vars.$px01;
border: 2px solid ui-vars.$grey;
@@ -284,6 +285,18 @@ fieldset {
}
}
.gateway-inbound {
> div {
&:nth-child(1) {
grid-template-columns: [col] calc(70% - #{ui-vars.$px02 * 2}) [col] 30%;
@include mixins.small() {
grid-template-columns: [col] 100%;
}
}
}
}
.lcr {
@extend .gateway;