mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-19 05:37:43 +00:00
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:
@@ -131,7 +131,7 @@ export const DEFAULT_WEBHOOK: WebHook = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** Default SIP/SMPP Gateways */
|
/** Default SIP/SMPP Gateways */
|
||||||
export const DEFAULT_SIP_GATEWAY: SipGateway = {
|
export const DEFAULT_SIP_INBOUND_GATEWAY: SipGateway = {
|
||||||
voip_carrier_sid: "",
|
voip_carrier_sid: "",
|
||||||
ipv4: "",
|
ipv4: "",
|
||||||
port: 5060,
|
port: 5060,
|
||||||
@@ -348,6 +348,12 @@ export const DTMF_TYPE_SELECTION: SelectorOptions[] = [
|
|||||||
{ name: "Tones", value: "tones" },
|
{ 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 */
|
/** Available webhook methods */
|
||||||
export const WEBHOOK_METHODS: WebhookOption[] = [
|
export const WEBHOOK_METHODS: WebhookOption[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -469,6 +469,8 @@ export interface CarrierRegisterStatus {
|
|||||||
|
|
||||||
export type DtmfType = "rfc2833" | "tones" | "info";
|
export type DtmfType = "rfc2833" | "tones" | "info";
|
||||||
|
|
||||||
|
export type TrunkType = "static_ip" | "auth" | "reg";
|
||||||
|
|
||||||
export interface Carrier {
|
export interface Carrier {
|
||||||
voip_carrier_sid: string;
|
voip_carrier_sid: string;
|
||||||
name: string;
|
name: string;
|
||||||
@@ -497,6 +499,7 @@ export interface Carrier {
|
|||||||
register_status: CarrierRegisterStatus;
|
register_status: CarrierRegisterStatus;
|
||||||
dtmf_type: DtmfType;
|
dtmf_type: DtmfType;
|
||||||
outbound_sip_proxy: string | null;
|
outbound_sip_proxy: string | null;
|
||||||
|
trunk_type: TrunkType;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PredefinedCarrier extends Carrier {
|
export interface PredefinedCarrier extends Carrier {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -218,7 +218,8 @@ fieldset {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.gateway {
|
.gateway,
|
||||||
|
.gateway-inbound {
|
||||||
padding: ui-vars.$px02;
|
padding: ui-vars.$px02;
|
||||||
border-radius: ui-vars.$px01;
|
border-radius: ui-vars.$px01;
|
||||||
border: 2px solid ui-vars.$grey;
|
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 {
|
.lcr {
|
||||||
@extend .gateway;
|
@extend .gateway;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user